mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
hosts/plover: update networking blocks
This commit is contained in:
parent
f0682c1f5e
commit
36cda7bab2
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user