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

View File

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