2 Commits

View File

@@ -326,7 +326,6 @@ in
duid
ipv6only
nohook resolv.conf, yp, hostname, ntp
nogateway
option rapid_commit
# this doesn't play well with networkd
@@ -338,7 +337,7 @@ in
# request the leases just for routing (so that the att box knows we're here)
# actual ip assignments are static, based on $pdFromWan
ia_pd 1/${ifs.lan.net6} -
# ia_pd 10/${ifs.lan10.net6} -
ia_pd 10/${ifs.lan10.net6} -
# ia_pd 20/${pdFromWan}d::/64 - # for opnsense (legacy services)
ia_pd 30/${ifs.lan30.net6} -
ia_pd 40/${ifs.lan40.net6} -
@@ -347,30 +346,6 @@ in
# ia_pd 8 -
'';
systemd.timers."restart-networkd" = {
};
systemd.timers."restart-networkd" = {
wantedBy = [ "timers.target" ];
timerConfig = {
OnBootSec = "1m";
OnUnitActiveSec = "1m";
Unit = "restart-networkd.service";
};
};
systemd.services."restart-networkd" = {
script = ''
set -eu
${pkgs.systemd}/bin/systemctl restart systemd-networkd
'';
serviceConfig = {
Type = "oneshot";
User = "root";
};
};
networking.useNetworkd = true;
systemd.network.enable = true;
systemd.network = {