module(pihole-container): add option declarations for the module + add module to flake

This commit is contained in:
Christopher Bacher 2022-10-04 00:19:12 +02:00
parent ef77de3abd
commit 1b5d13c510
2 changed files with 243 additions and 0 deletions

View file

@ -17,6 +17,7 @@
${system.x86_64-linux}.pihole = imageBaseInfo // {
arch = "amd64";
sha256 = "sha256-5FUtafW2YdTfOfA0ieiyJasMUYEGReOMQ4PGZ8e32hY=";
# name = # final image name can be set here
};
${system.aarch64-linux}.pihole = imageBaseInfo // {
@ -33,6 +34,8 @@
default = piholeImage;
};
nixosModule = import ./modules/pihole-container.nix;
devShells.default = let
updatePiholeImageInfoScript = pkgs.writeShellScriptBin "update-pihole-image-info" ''
INSPECT_RESULT=`skopeo inspect "docker://${imageName}:latest"`