pihole: update subnet and bind DNS IP
This commit is contained in:
parent
049cf0bf4d
commit
baccbeb7d0
|
@ -5,10 +5,11 @@ let
|
||||||
pihole = podman.pihole;
|
pihole = podman.pihole;
|
||||||
inherit (lib) mkIf;
|
inherit (lib) mkIf;
|
||||||
gateway = "10.1.1.1";
|
gateway = "10.1.1.1";
|
||||||
subnet = "10.1.1.0/29";
|
subnet = "10.1.1.0/30";
|
||||||
ip = "10.1.1.3";
|
ip = "10.1.1.2";
|
||||||
ip-range = "10.1.1.3/29";
|
ip-range = "10.1.1.2/30";
|
||||||
image = "pihole/pihole:latest";
|
image = "pihole/pihole:latest";
|
||||||
|
piholeDNSIPBind = "192.168.100.3";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = mkIf (podman.enable && pihole.enable) {
|
config = mkIf (podman.enable && pihole.enable) {
|
||||||
|
@ -65,7 +66,7 @@ in
|
||||||
DNS_FQDN_REQUIRED = "false";
|
DNS_FQDN_REQUIRED = "false";
|
||||||
};
|
};
|
||||||
ports = [
|
ports = [
|
||||||
"192.168.100.4:53:53/udp"
|
"${piholeDNSIPBind}:53:53/udp"
|
||||||
"67:67/udp"
|
"67:67/udp"
|
||||||
];
|
];
|
||||||
volumes = [
|
volumes = [
|
||||||
|
|
Loading…
Reference in a new issue