nixos-module/container/dhcp-server: make dhcp.router a flat hostName

This commit is contained in:
Astro 2022-10-22 22:41:17 +02:00
parent 9be5565030
commit f4ac3f9edb
3 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ lib.mkMerge (
server = "priv${toString n}-gw"; server = "priv${toString n}-gw";
time = 120; time = 120;
max-time = 86400; max-time = 86400;
router = "priv${toString n}-gw.priv${toString n}"; router = "priv${toString n}-gw";
}; };
domainName = "priv${toString n}.zentralwerk.org"; domainName = "priv${toString n}.zentralwerk.org";
dynamicDomain = true; dynamicDomain = true;

View File

@ -4,7 +4,7 @@
start = "172.20.78.2"; start = "172.20.78.2";
end = "172.20.79.253"; end = "172.20.79.253";
max-time = 3600; max-time = 3600;
router = "pub-gw.pub"; router = "pub-gw";
server = "pub-gw"; server = "pub-gw";
time = 300; time = 300;
}; };

View File

@ -48,7 +48,7 @@ in
group { group {
default-lease-time ${toString dhcp.time}; default-lease-time ${toString dhcp.time};
max-lease-time ${toString dhcp.max-time}; max-lease-time ${toString dhcp.max-time};
option routers ${config.site.net.${net}.hosts4.${builtins.replaceStrings [".${net}"] [""] dhcp.router}}; option routers ${config.site.net.${net}.hosts4.${dhcp.router}};
option domain-name "${domainName}"; option domain-name "${domainName}";
option domain-name-servers 172.20.73.8, 9.9.9.9; option domain-name-servers 172.20.73.8, 9.9.9.9;
ddns-domainname "${domainName}"; ddns-domainname "${domainName}";