summary refs log tree commit diff
path: root/nixos/modules/tasks
diff options
context:
space:
mode:
authorMolly Miller <mm@flyingcircus.io>2023-06-27 15:18:52 +0200
committerMolly Miller <mm@flyingcircus.io>2023-06-27 16:15:02 +0200
commit3e96fd980db95ad6268cb5ea79dcff6aaa21e098 (patch)
tree51ba4450398fbf408e9410155450cd6c5da911f0 /nixos/modules/tasks
parent6c112fb5de615adfc2c76b08a923ff61215e2a0b (diff)
downloadnixpkgs-3e96fd980db95ad6268cb5ea79dcff6aaa21e098.tar
nixpkgs-3e96fd980db95ad6268cb5ea79dcff6aaa21e098.tar.gz
nixpkgs-3e96fd980db95ad6268cb5ea79dcff6aaa21e098.tar.bz2
nixpkgs-3e96fd980db95ad6268cb5ea79dcff6aaa21e098.tar.lz
nixpkgs-3e96fd980db95ad6268cb5ea79dcff6aaa21e098.tar.xz
nixpkgs-3e96fd980db95ad6268cb5ea79dcff6aaa21e098.tar.zst
nixpkgs-3e96fd980db95ad6268cb5ea79dcff6aaa21e098.zip
nixos/network-interfaces: restrict IPv6 privacy address overrides to interface
Only trigger the privacy address override for a given interface when
that interface is added. Without restricting the rule to the
interface, this command would be run when any interface is added.
Diffstat (limited to 'nixos/modules/tasks')
-rw-r--r--nixos/modules/tasks/network-interfaces.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/tasks/network-interfaces.nix b/nixos/modules/tasks/network-interfaces.nix
index 954d7ffba71..eb1c7512d92 100644
--- a/nixos/modules/tasks/network-interfaces.nix
+++ b/nixos/modules/tasks/network-interfaces.nix
@@ -1496,7 +1496,7 @@ in
           in
           ''
             # override to ${msg} for ${i.name}
-            ACTION=="add", SUBSYSTEM=="net", RUN+="${pkgs.procps}/bin/sysctl net.ipv6.conf.${replaceStrings ["."] ["/"] i.name}.use_tempaddr=${val}"
+            ACTION=="add", SUBSYSTEM=="net", NAME=="${i.name}", RUN+="${pkgs.procps}/bin/sysctl net.ipv6.conf.${replaceStrings ["."] ["/"] i.name}.use_tempaddr=${val}"
           '') (filter (i: i.tempAddress != cfg.tempAddresses) interfaces);
       })
     ] ++ lib.optional (cfg.wlanInterfaces != {})