diff --git a/modules/services/syncthing.nix b/modules/services/syncthing.nix index 7431d30ec..8551b25d1 100644 --- a/modules/services/syncthing.nix +++ b/modules/services/syncthing.nix @@ -686,15 +686,17 @@ in { }; }; - launchd.agents.syncthing = { - enable = true; - config = { - ProgramArguments = syncthingArgs; - KeepAlive = { - Crashed = true; - SuccessfulExit = false; + launchd.agents = { + syncthing = { + enable = true; + config = { + ProgramArguments = syncthingArgs; + KeepAlive = { + Crashed = true; + SuccessfulExit = false; + }; + ProcessType = "Background"; }; - ProcessType = "Background"; }; }; })