Arg that's frustrating...why no NAT?

This commit is contained in:
2021-03-02 00:08:14 +00:00
parent 946f3597ef
commit ce77837769
3 changed files with 8 additions and 8 deletions
+3 -2
View File
@@ -108,8 +108,9 @@ in {
networking = {
hostName = config.instance.hostname;
nameservers = site.nameservers;
defaultGateway = site.gateway-v4;
defaultGateway6 = site.gateway-v6;
# This will cause a loop on the gateway itself
#defaultGateway = site.gateway-v4;
#defaultGateway6 = site.gateway-v6;
# Necessary to ensure that Kerberos and Avahi both work. Kerberos needs
# the fqdn of the host, whereas Avahi wants just the simple hostname.`
+3 -4
View File
@@ -112,10 +112,9 @@ in {
option routers ${cfg.gateway};
option domain-name-servers ${concatStringsSep " " cfg.dns-servers};
option domain-name "${cfg.domain}";
option domain-search ${
join-lines
(map (dom: ''"${dom}"'') ([ cfg.domain ] ++ cfg.search-domains))
};
option domain-search "${
concatStringsSep " " ([ cfg.domain ] ++ cfg.search-domains)
}";
range ${ip.networkMinIp cfg.dhcp-dynamic-network} ${
ip.networkMaxButOneIp cfg.dhcp-dynamic-network
};