mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 12:19:07 +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/
|
# 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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user