From e1c1fdd8c222f646ce50e8b04469a238b59f0590 Mon Sep 17 00:00:00 2001 From: Naïm Favier Date: Fri, 17 Jun 2022 19:38:59 +0200 Subject: 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. --- nixos/modules/tasks/network-interfaces-systemd.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nixos/modules') diff --git a/nixos/modules/tasks/network-interfaces-systemd.nix b/nixos/modules/tasks/network-interfaces-systemd.nix index 65cd52a35cdf3..1657fabcd9b1c 100644 --- a/nixos/modules/tasks/network-interfaces-systemd.nix +++ b/nixos/modules/tasks/network-interfaces-systemd.nix @@ -95,6 +95,7 @@ in DHCP = "yes"; linkConfig.RequiredForOnline = lib.mkDefault config.systemd.network.wait-online.anyInterface; + networkConfig.IPv6PrivacyExtensions = "kernel"; }; networks."99-wireless-client-dhcp" = lib.mkIf cfg.useDHCP { # Like above, but this is much more likely to be correct. @@ -102,6 +103,7 @@ in DHCP = "yes"; linkConfig.RequiredForOnline = lib.mkDefault config.systemd.network.wait-online.anyInterface; + networkConfig.IPv6PrivacyExtensions = "kernel"; # We also set the route metric to one more than the default # of 1024, so that Ethernet is preferred if both are # available. -- cgit 1.4.1