commit 53ec331e294fae8a9ba8cd57c4f43f1ff7f3ae9d
parent d538e8f6cf96dbe8d94e1ed0d4ef2da1767c6abb
Author: Daniel Barlow <dan@telent.net>
Date: Tue, 11 Nov 2025 20:53:40 +0000
attempt disabling ipv6 autoconfiguration at boot
This dosn't work as well as you might think if you didn't know that
the config semantics are weird. By setting 'default' we disable
autoconfig on interfaces that do not yet exist, but setting 'all' here
has no effect.
Diffstat:
1 file changed, 12 insertions(+), 0 deletions(-)
diff --git a/modules/base.nix b/modules/base.nix
@@ -185,6 +185,18 @@ in
};
};
+ early.sysctl.net.ipv6.conf =
+ let
+ v = {
+ autoconf = 0;
+ accept_ra = 0;
+ };
+ in
+ {
+ default = v; # sets values for new interfaces
+ all = v; # probably does nothing
+ };
+
filesystem = dir {
dev =
let