From d72b14f17bf996b4942646fbf08ddc3b6b7960ef Mon Sep 17 00:00:00 2001 From: Christopher Bacher Date: Sun, 30 Oct 2022 00:12:51 +0200 Subject: [PATCH] modules(pihole-container): add option for configuring the DNS interface of the container --- modules/pihole-container.factory.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/pihole-container.factory.nix b/modules/pihole-container.factory.nix index dfa3d4c..0423d03 100644 --- a/modules/pihole-container.factory.nix +++ b/modules/pihole-container.factory.nix @@ -95,6 +95,17 @@ in rec { envVar = "TZ"; }; + interface = mkContainerEnvOption { + type = types.str; + description = '' + Set the interface of the pihole container on which it should respond to DNS requests. + + Note: Configuring "Allow only local requests" is currently not supported by the pihole image at startup but can be done later through the web interface. + ''; + default = "tap0"; + envVar = "INTERFACE"; + }; + web = { password = mkContainerEnvOption { type = with types; nullOr str;