liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit ff7aaec874b53383008666c064f1efa8dfb29733
parent 9bb2d4d4fb53747420ad0c105c79818d434ab49e
Author: Daniel Barlow <dan@telent.net>
Date:   Tue, 11 Nov 2025 20:58:37 +0000

disable ipv6 autoconfig when bringing links up

Diffstat:
Mmodules/network/link.nix | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/modules/network/link.nix b/modules/network/link.nix @@ -25,6 +25,13 @@ oneshot { inherit name; up = '' ${rename} + ( cd /proc/sys/net/ipv6/conf/${ifname} + ${ + liminix.writeSysctls { + autoconfig = 0; + accept_ra = 0; + } + } ) ${liminix.networking.ifup name ifname} ''; down = "ip link set down dev ${ifname}";