hosts/plover: update networking blocks

This commit is contained in:
Gabriel Arazas 2023-02-22 11:29:43 +08:00
parent f0682c1f5e
commit 36cda7bab2
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
2 changed files with 8 additions and 3 deletions

View File

@ -59,6 +59,7 @@ in
# https://discourse.nixos.org/t/nixos-on-hetzner-cloud-servers-ipv6/221/ # https://discourse.nixos.org/t/nixos-on-hetzner-cloud-servers-ipv6/221/
systemd.network = { systemd.network = {
enable = true; enable = true;
wait-online.ignoredInterfaces = [ "lo" ];
# For more information, you can look at Hetzner documentation from # For more information, you can look at Hetzner documentation from
# https://docs.hetzner.com/robot/dedicated-server/ip/additional-ip-adresses/ # https://docs.hetzner.com/robot/dedicated-server/ip/additional-ip-adresses/
@ -73,9 +74,10 @@ in
networkConfig = { networkConfig = {
# IPv6 has to be manually configured. # IPv6 has to be manually configured.
DHCP = "ipv4"; DHCP = "ipv4";
IPForward = true;
LinkLocalAddressing = "ipv6"; LinkLocalAddressing = "ipv6";
IPForward = true; IPv6AcceptRA = true;
DNS = [ DNS = [
"2a01:4ff:ff00::add:2" "2a01:4ff:ff00::add:2"
@ -101,6 +103,8 @@ in
IPv4.gateway IPv4.gateway
IPv6.gateway IPv6.gateway
]; ];
networkConfig.IPv6AcceptRA = true;
}; };
}; };
}; };

View File

@ -5,8 +5,9 @@ let
inherit (builtins) toString; inherit (builtins) toString;
in in
rec { rec {
# This is expected to be /64 block (i.e., `fc00:b0de:5685::/64`). # This is expected to be /48 block (i.e., `fc00:b0de:5685::/48`).
privateIPv6Prefix = "fc00:b0de:5685"; # The thing is generated using a ULA generator.
privateIPv6Prefix = "fd89:c181:8016";
# These blocks should be used sparingly with how wide these blocks cover. # These blocks should be used sparingly with how wide these blocks cover.
# Plus, they shouldn't be treated as subnets. # Plus, they shouldn't be treated as subnets.