Change the pihole config to a flake that hopefully works

This commit is contained in:
Lillian Violet 2024-01-12 16:58:45 +01:00
parent d90ba55a21
commit ed61829532
2 changed files with 48 additions and 76 deletions

View file

@ -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
];
};
};