From baccbeb7d0783e821e1833c7c898860ceda143a6 Mon Sep 17 00:00:00 2001 From: Tigor Hutasuhut Date: Mon, 17 Jun 2024 18:47:23 +0700 Subject: [PATCH] pihole: update subnet and bind DNS IP --- system/podman/pihole.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/system/podman/pihole.nix b/system/podman/pihole.nix index 626b682..f5972d0 100644 --- a/system/podman/pihole.nix +++ b/system/podman/pihole.nix @@ -5,10 +5,11 @@ let pihole = podman.pihole; inherit (lib) mkIf; gateway = "10.1.1.1"; - subnet = "10.1.1.0/29"; - ip = "10.1.1.3"; - ip-range = "10.1.1.3/29"; + subnet = "10.1.1.0/30"; + ip = "10.1.1.2"; + ip-range = "10.1.1.2/30"; image = "pihole/pihole:latest"; + piholeDNSIPBind = "192.168.100.3"; in { config = mkIf (podman.enable && pihole.enable) { @@ -65,7 +66,7 @@ in DNS_FQDN_REQUIRED = "false"; }; ports = [ - "192.168.100.4:53:53/udp" + "${piholeDNSIPBind}:53:53/udp" "67:67/udp" ]; volumes = [