router: don't DHCPRELEASE the WAN lease on networkd stop

This commit is contained in:
rope 2026-08-24 19:49:59 +01:00
parent 25319ea033
commit 1f2f8ad5bd

View file

@ -114,6 +114,13 @@ in
dhcpV4Config = {
UseDNS = false; # don't overwrite resolv.conf from ISP DNS
UseHostname = false;
# networkd defaults SendRelease=true: stopping the unit (every
# nixos-upgrade, and the watchdog's 4min escalation) sends a
# DHCPRELEASE that hands our IP back to the ISP pool, so the next
# start DISCOVERs a fresh one. Every WAN IP change in the journal
# landed at 05:1x — the upgrade window — not on ISP timing.
# false = keep the lease and re-REQUEST it (INIT-REBOOT).
SendRelease = false;
};
};
"20-lan" = {