diff options
author | Naïm Favier <n@monade.li> | 2022-10-06 16:44:51 +0200 |
---|---|---|
committer | Naïm Favier <n@monade.li> | 2022-10-06 16:46:17 +0200 |
commit | 52c58c8bbef7b24aa8cb396afc05a8437e4dd3ec (patch) | |
tree | b167da499777d11c4b3d03876d7c20681565b3c4 /nixos/modules/tasks | |
parent | 7729c1abb43ca0091a973f39094a4224c61dd289 (diff) |
nixos/network-interfaces: reflect negative settings of `proxyARP`
Currently, setting `proxyARP` to true enables `proxy_arp`, but setting it to false doesn't disable it. This is surprising and stateful.
Diffstat (limited to 'nixos/modules/tasks')
-rw-r--r-- | nixos/modules/tasks/network-interfaces.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/tasks/network-interfaces.nix b/nixos/modules/tasks/network-interfaces.nix index e2a17c246bd94..74df1cb05509d 100644 --- a/nixos/modules/tasks/network-interfaces.nix +++ b/nixos/modules/tasks/network-interfaces.nix @@ -1352,8 +1352,8 @@ in "net.ipv6.conf.default.disable_ipv6" = mkDefault (!cfg.enableIPv6); # networkmanager falls back to "/proc/sys/net/ipv6/conf/default/use_tempaddr" "net.ipv6.conf.default.use_tempaddr" = tempaddrValues.${cfg.tempAddresses}.sysctl; - } // listToAttrs (flip concatMap (filter (i: i.proxyARP) interfaces) - (i: [(nameValuePair "net.ipv4.conf.${replaceChars ["."] ["/"] i.name}.proxy_arp" true)])) + } // listToAttrs (forEach interfaces + (i: nameValuePair "net.ipv4.conf.${replaceChars ["."] ["/"] i.name}.proxy_arp" i.proxyARP)) // listToAttrs (forEach interfaces (i: let opt = i.tempAddress; |