summaryrefslogtreecommitdiffstats
path: root/tv/2configs/default.nix
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2021-12-08 08:15:51 +0100
committerlassulus <lassulus@lassul.us>2021-12-08 08:15:51 +0100
commit0ff9f70dab01161c352eb8c1954bf793e155bb1c (patch)
tree88fba34c56c5ad49bb80bff664f2ecd578c40bd8 /tv/2configs/default.nix
parenta921560b2ffe640e951fe22aae612d14797321b5 (diff)
parentf04db939e10ac144ea9f58dcaeab3d4ec653b326 (diff)
Merge remote-tracking branch 'ni/master' into 21.11
Diffstat (limited to 'tv/2configs/default.nix')
-rw-r--r--tv/2configs/default.nix13
1 files changed, 11 insertions, 2 deletions
diff --git a/tv/2configs/default.nix b/tv/2configs/default.nix
index de298e1..8add07f 100644
--- a/tv/2configs/default.nix
+++ b/tv/2configs/default.nix
@@ -94,8 +94,17 @@ with import <stockholm/lib>;
{
boot.kernel.sysctl = {
# Enable IPv6 Privacy Extensions
- "net.ipv6.conf.all.use_tempaddr" = 2;
- "net.ipv6.conf.default.use_tempaddr" = 2;
+ #
+ # XXX use mkForce here because since NixOS 21.11 there's a collision in
+ # net.ipv6.conf.default.use_tempaddr, and boot.kernel.sysctl incapable
+ # of merging.
+ #
+ # XXX net.ipv6.conf.all.use_tempaddr is set because it was mentioned in
+ # https://tldp.org/HOWTO/Linux+IPv6-HOWTO/ch06s05.html
+ # TODO check if that is really necessary, otherwise we can rely solely
+ # on networking.tempAddresses in the future (when nothing is <21.11)
+ "net.ipv6.conf.all.use_tempaddr" = mkForce 2;
+ "net.ipv6.conf.default.use_tempaddr" = mkForce 2;
};
}