From f341cd4a64ce4956e936c29e415c0dcd6ff148cc 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. (cherry picked from commit 00031e20b1cd9ea6da5864f8db4095c85530fc3c) --- 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 1be493ce312a..0cd018744afc 100644 --- a/nixos/modules/services/networking/syncthing.nix +++ b/nixos/modules/services/networking/syncthing.nix @@ -1044,7 +1044,7 @@ in }; syncthing-init = mkIf (cleanedConfig != { }) { description = "Syncthing configuration updater"; - requisite = [ "syncthing.service" ]; + requires = [ "syncthing.service" ]; after = [ "syncthing.service" ]; wantedBy = [ "multi-user.target" ];