From a2337e4f6c23dbebe63dc2de4c998f4f2b8d1526 Mon Sep 17 00:00:00 2001 From: Tom Fitzhenry Date: Wed, 23 Oct 2024 23:08:33 +1100 Subject: [PATCH] nixos/spiped: use systemctl restart during activation As is common with other networking services, stopIfChanged=true (the default) can cause O(seconds) downtime during activation. Reduce this downtime by disabling stopIfChanged as done in: * sshd https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/networking/ssh/sshd.nix#L569 * tailscale https://github.com/NixOS/nixpkgs/pull/170210 --- nixos/modules/services/networking/spiped.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/networking/spiped.nix b/nixos/modules/services/networking/spiped.nix index a5188d933995..09d8156d1c51 100644 --- a/nixos/modules/services/networking/spiped.nix +++ b/nixos/modules/services/networking/spiped.nix @@ -186,6 +186,7 @@ in Restart = "always"; User = "spiped"; }; + stopIfChanged = false; scriptArgs = "%i"; script = "exec ${pkgs.spiped}/bin/spiped -F `cat /etc/spiped/$1.spec`";