From 00031e20b1cd9ea6da5864f8db4095c85530fc3c Mon Sep 17 00:00:00 2001 From: r-vdp Date: Wed, 19 Aug 2026 09:56:02 +0200 Subject: [PATCH] nixos/syncthing: use requires instead of requisite for syncthing-init Requisite= races during nixos-rebuild switch, syncthing-init can be started before syncthing.service and then fails with result 'dependency'. Requires= pulls syncthing.service into the same transaction, so After= can order the jobs correctly. --- nixos/modules/services/networking/syncthing.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/networking/syncthing.nix b/nixos/modules/services/networking/syncthing.nix index 413ac1795bf2..fc990106ddd0 100644 --- a/nixos/modules/services/networking/syncthing.nix +++ b/nixos/modules/services/networking/syncthing.nix @@ -1049,7 +1049,7 @@ in }; syncthing-init = lib.mkIf (cleanedConfig != { }) { description = "Syncthing configuration updater"; - requisite = [ "syncthing.service" ]; + requires = [ "syncthing.service" ]; after = [ "syncthing.service" ]; wantedBy = [ "multi-user.target" ];