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.
This commit is contained in:
r-vdp
2026-08-19 09:56:02 +02:00
parent 5987146ff1
commit 00031e20b1

View File

@@ -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" ];