From 1f2f8ad5bd5ab974bca27abcf47ba50e44717288 Mon Sep 17 00:00:00 2001 From: rope Date: Mon, 24 Aug 2026 19:49:59 +0100 Subject: [PATCH] router: don't DHCPRELEASE the WAN lease on networkd stop --- services/router.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/services/router.nix b/services/router.nix index 1685eb1..fc9ee2c 100644 --- a/services/router.nix +++ b/services/router.nix @@ -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" = {