From e32bcaf945d42392a6a0644725f9a4e2470e27a2 Mon Sep 17 00:00:00 2001 From: Yuri Tatishchev Date: Wed, 12 Mar 2025 11:09:19 -0700 Subject: [PATCH] WIP: router: attempt static ipv6 gateway on wan --- hosts/router/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hosts/router/default.nix b/hosts/router/default.nix index 5dcafa8..e2e04c1 100644 --- a/hosts/router/default.nix +++ b/hosts/router/default.nix @@ -50,6 +50,7 @@ let addr4 = "192.168.1.61"; addr4Sized = "${addr4}/24"; gw4 = "192.168.1.254"; + gw6 = "fe80::e21f:2bff:fe96:e952"; }; lan = mkIfConfig { name_ = "lan"; @@ -325,6 +326,7 @@ in duid ipv6only nohook resolv.conf, yp, hostname, ntp + nogateway option rapid_commit # this doesn't play well with networkd @@ -387,7 +389,10 @@ in Address = [ ifs.wan.addr4Sized ]; IPv6AcceptRA = false; }; - routes = [ { Gateway = ifs.wan.gw4; } ]; + routes = [ + { Gateway = ifs.wan.gw4; } + { Gateway = ifs.wan.gw6; } + ]; # make routing on this interface a dependency for network-online.target linkConfig.RequiredForOnline = "routable"; };