summaryrefslogtreecommitdiffstats
path: root/configs/networkd.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-24 02:10:58 +0000
committertv <tv@krebsco.de>2026-11-24 03:12:57 +0000
commit6ab154b76db0c16fb422ff03c938882dd0b2edfa (patch)
tree8fdb6ce1a854c4769691949d467e8ad3b007c76e /configs/networkd.nix
parent21f33d3d8ccab1ac149835963e4687aadd8d3b05 (diff)
networkd: restart networkd and resolved instead of stopping them
Diffstat (limited to 'configs/networkd.nix')
-rw-r--r--configs/networkd.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/configs/networkd.nix b/configs/networkd.nix
index 180991ba..6141f47e 100644
--- a/configs/networkd.nix
+++ b/configs/networkd.nix
@@ -5,6 +5,11 @@
networking.useNetworkd = true;
networking.useDHCP = false;
+ # Do not take the network down for too long.
+ # From: https://github.com/numtide/srvos/commit/a99a47d
+ systemd.services.systemd-networkd.stopIfChanged = false;
+ systemd.services.systemd-resolved.stopIfChanged = false;
+
# The networks are called 40-NAME like the ones from
# <nixpkgs/nixos/modules/tasks/network-interfaces-systemd.nix>, so the
# settings merge into them: systemd uses only the first file that matches