hosts/plover/services/networking: fix config

This commit is contained in:
Gabriel Arazas 2024-09-23 10:05:54 +08:00
parent ab227ebe55
commit d3f4230f4d
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360

View File

@ -74,24 +74,24 @@ in
address = [ "${wan.ipv6}/64" ];
gateway = [ wan.ipv6Gateway ];
dns = [
"2a01:4ff:ff00::add:2"
"2a01:4ff:ff00::add:1"
]
++ lib.optionals hostCfg.services.dns-server.enable [
wan.ipv4
wan.ipv6
];
# Setting up some other networking thingy.
domains = [ config.networking.domain ];
networkConfig = {
# IPv6 has to be manually configured.
DHCP = "ipv4";
IPForward = true;
IPv4Forwarding = true;
IPv6Forwarding = true;
LinkLocalAddressing = "ipv6";
IPv6AcceptRA = true;
DNS = [
# The custom DNS servers.
wan.ipv4
wan.ipv6
"2a01:4ff:ff00::add:2"
"2a01:4ff:ff00::add:1"
];
};
};