nixos/networkd: add IPv6PrivacyExtensions=kernel
for default networks
Maybe this could go in `genericNetwork`, but I don't know if it makes sense for bridges, bonds etc. and I don't want to break anything.
This commit is contained in:
parent
f8a83b4260
commit
e1c1fdd8c2
|
@ -95,6 +95,7 @@ in
|
||||||
DHCP = "yes";
|
DHCP = "yes";
|
||||||
linkConfig.RequiredForOnline =
|
linkConfig.RequiredForOnline =
|
||||||
lib.mkDefault config.systemd.network.wait-online.anyInterface;
|
lib.mkDefault config.systemd.network.wait-online.anyInterface;
|
||||||
|
networkConfig.IPv6PrivacyExtensions = "kernel";
|
||||||
};
|
};
|
||||||
networks."99-wireless-client-dhcp" = lib.mkIf cfg.useDHCP {
|
networks."99-wireless-client-dhcp" = lib.mkIf cfg.useDHCP {
|
||||||
# Like above, but this is much more likely to be correct.
|
# Like above, but this is much more likely to be correct.
|
||||||
|
@ -102,6 +103,7 @@ in
|
||||||
DHCP = "yes";
|
DHCP = "yes";
|
||||||
linkConfig.RequiredForOnline =
|
linkConfig.RequiredForOnline =
|
||||||
lib.mkDefault config.systemd.network.wait-online.anyInterface;
|
lib.mkDefault config.systemd.network.wait-online.anyInterface;
|
||||||
|
networkConfig.IPv6PrivacyExtensions = "kernel";
|
||||||
# We also set the route metric to one more than the default
|
# We also set the route metric to one more than the default
|
||||||
# of 1024, so that Ethernet is preferred if both are
|
# of 1024, so that Ethernet is preferred if both are
|
||||||
# available.
|
# available.
|
||||||
|
|
Loading…
Reference in a new issue