diff options
author | Linus Heckemann <git@sphalerite.org> | 2022-03-29 10:39:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-29 10:39:46 +0200 |
commit | 3631db714ce5981d10b545251fef1a267a8fe66e (patch) | |
tree | e5b54d1ba3a952495ae8f1e59cba51202152ba3c /nixos/modules/tasks | |
parent | 9b7f392f756e55ec9e5bc88f2defee626b1325f3 (diff) | |
parent | c74d784771c9cee62bfd85b302f4568894df291e (diff) |
Merge pull request #158176 from lheckemann/fix-tempaddr
network-interfaces: use altered interface name for setting use_tempaddr
Diffstat (limited to 'nixos/modules/tasks')
-rw-r--r-- | nixos/modules/tasks/network-interfaces.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/tasks/network-interfaces.nix b/nixos/modules/tasks/network-interfaces.nix index 60b5a48b2e62e..8ca4ad7b7d86d 100644 --- a/nixos/modules/tasks/network-interfaces.nix +++ b/nixos/modules/tasks/network-interfaces.nix @@ -1451,7 +1451,7 @@ in sysctl-value = tempaddrValues.${cfg.tempAddresses}.sysctl; in '' # enable and prefer IPv6 privacy addresses by default - ACTION=="add", SUBSYSTEM=="net", RUN+="${pkgs.bash}/bin/sh -c 'echo ${sysctl-value} > /proc/sys/net/ipv6/conf/%k/use_tempaddr'" + ACTION=="add", SUBSYSTEM=="net", RUN+="${pkgs.bash}/bin/sh -c 'echo ${sysctl-value} > /proc/sys/net/ipv6/conf/$name/use_tempaddr'" ''; }) (pkgs.writeTextFile rec { |