module(pihole-container): rename module to pihole

This commit is contained in:
Christopher Bacher 2022-10-09 19:57:58 +02:00
parent 7174f824d6
commit 1a4551ff17
2 changed files with 4 additions and 4 deletions

View file

@ -34,7 +34,7 @@
default = piholeImage; default = piholeImage;
}; };
nixosModules.default = import ./modules/pihole-container.factory.nix { piholeFlake = self; }; nixosModules.default = (import ./modules/pihole-container.factory.nix) { piholeFlake = self; };
devShells.default = let devShells.default = let
updatePiholeImageInfoScript = pkgs.writeShellScriptBin "update-pihole-image-info" '' updatePiholeImageInfoScript = pkgs.writeShellScriptBin "update-pihole-image-info" ''

View file

@ -1,5 +1,5 @@
{ piholeFlake }: { config, pkgs, lib, ... }: with lib; let { piholeFlake }: { config, pkgs, lib, ... }: with lib; let
cfg = config.services.piholeRootlessContainer; cfg = config.services.pihole;
mkHostPortsOption = { service, publicDefaultPort }: { mkHostPortsOption = { service, publicDefaultPort }: {
host-internal-port = mkOption { host-internal-port = mkOption {
@ -30,7 +30,7 @@
in { in {
options = { options = {
services.piholeRootlessContainer = { services.pihole = {
enable = mkEnableOption "PiHole as a rootless podman container"; enable = mkEnableOption "PiHole as a rootless podman container";
hostConfig = { hostConfig = {
@ -246,7 +246,7 @@ in {
--rmi \ --rmi \
docker-archive:${self.packages.piholeImage} docker-archive:${self.packages.piholeImage}
''; '';
User = null; User = admin;
}; };
}; };
}; };