module(pihole-container): make it a module factory; WIP: start adding systemd service
The factory function returns the pihole module and allows to pass the flake itself to refer to its outputs.
This commit is contained in:
parent
1b5d13c510
commit
7174f824d6
2 changed files with 16 additions and 3 deletions
|
|
@ -34,7 +34,7 @@
|
|||
default = piholeImage;
|
||||
};
|
||||
|
||||
nixosModule = import ./modules/pihole-container.nix;
|
||||
nixosModules.default = import ./modules/pihole-container.factory.nix { piholeFlake = self; };
|
||||
|
||||
devShells.default = let
|
||||
updatePiholeImageInfoScript = pkgs.writeShellScriptBin "update-pihole-image-info" ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue