Change the pihole config to a flake that hopefully works
This commit is contained in:
parent
d90ba55a21
commit
ed61829532
2 changed files with 48 additions and 76 deletions
19
flake.nix
19
flake.nix
|
@ -22,6 +22,19 @@
|
|||
extest.url = "github:chaorace/extest-nix";
|
||||
# Add any other flake you might need
|
||||
# hardware.url = "github:nixos/nixos-hardware";
|
||||
|
||||
# Required for making sure that Pi-hole continues running if the executing user has no active session.
|
||||
linger = {
|
||||
url = "github:mindsbackyard/linger-flake";
|
||||
inputs.flake-utils.follows = "flake-utils";
|
||||
};
|
||||
|
||||
pihole = {
|
||||
url = "github:mindsbackyard/pihole-flake";
|
||||
inputs.nixpkgs.follow = "nixpkgs";
|
||||
inputs.flake-utils.follows = "flake-utils";
|
||||
inputs.linger.follows = "linger";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = {
|
||||
|
@ -31,6 +44,8 @@
|
|||
sops-nix,
|
||||
simple-nixos-mailserver,
|
||||
plasma-manager,
|
||||
linger,
|
||||
pihole,
|
||||
...
|
||||
} @ inputs: let
|
||||
inherit (self) outputs;
|
||||
|
@ -84,6 +99,10 @@
|
|||
# > Our main nixos configuration file <
|
||||
./nixos/hosts/shodan/configuration.nix
|
||||
sops-nix.nixosModules.sops
|
||||
|
||||
# make the module declared by the linger flake available to our config
|
||||
linger.nixosModules.${system}.default
|
||||
pihole.nixosModules.${system}.default
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue