Compare commits
3 Commits
feature/ro
...
454c5b47c9
| Author | SHA1 | Date | |
|---|---|---|---|
|
454c5b47c9
|
|||
|
e9a0cb362a
|
|||
|
527a4e7da1
|
@@ -326,6 +326,7 @@ in
|
|||||||
duid
|
duid
|
||||||
ipv6only
|
ipv6only
|
||||||
nohook resolv.conf, yp, hostname, ntp
|
nohook resolv.conf, yp, hostname, ntp
|
||||||
|
nogateway
|
||||||
option rapid_commit
|
option rapid_commit
|
||||||
|
|
||||||
# this doesn't play well with networkd
|
# this doesn't play well with networkd
|
||||||
@@ -337,7 +338,7 @@ in
|
|||||||
# request the leases just for routing (so that the att box knows we're here)
|
# request the leases just for routing (so that the att box knows we're here)
|
||||||
# actual ip assignments are static, based on $pdFromWan
|
# actual ip assignments are static, based on $pdFromWan
|
||||||
ia_pd 1/${ifs.lan.net6} -
|
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 20/${pdFromWan}d::/64 - # for opnsense (legacy services)
|
||||||
ia_pd 30/${ifs.lan30.net6} -
|
ia_pd 30/${ifs.lan30.net6} -
|
||||||
ia_pd 40/${ifs.lan40.net6} -
|
ia_pd 40/${ifs.lan40.net6} -
|
||||||
@@ -346,6 +347,30 @@ in
|
|||||||
# ia_pd 8 -
|
# 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;
|
networking.useNetworkd = true;
|
||||||
systemd.network.enable = true;
|
systemd.network.enable = true;
|
||||||
systemd.network = {
|
systemd.network = {
|
||||||
|
|||||||
Reference in New Issue
Block a user