diff --git a/modules/services/syncthing.nix b/modules/services/syncthing.nix index 1de24029..a8b38318 100644 --- a/modules/services/syncthing.nix +++ b/modules/services/syncthing.nix @@ -840,6 +840,8 @@ in SuccessfulExit = false; }; ProcessType = "Background"; + StandardOutPath = "${config.home.homeDirectory}/Library/Logs/Syncthing/syncthing-stdout.log"; + StandardErrorPath = "${config.home.homeDirectory}/Library/Logs/Syncthing/syncthing-stderr.log"; }; }; @@ -849,6 +851,8 @@ in ProgramArguments = [ "${updateConfig}" ]; ProcessType = "Background"; RunAtLoad = true; + StandardOutPath = "${config.home.homeDirectory}/Library/Logs/Syncthing/syncthing-init-stdout.log"; + StandardErrorPath = "${config.home.homeDirectory}/Library/Logs/Syncthing/syncthing-init-stderr.log"; }; }; }; diff --git a/tests/modules/services/syncthing/expected-agent.plist b/tests/modules/services/syncthing/expected-agent.plist index 72cf9870..79550be9 100644 --- a/tests/modules/services/syncthing/expected-agent.plist +++ b/tests/modules/services/syncthing/expected-agent.plist @@ -19,5 +19,9 @@ -c /bin/wait4path /nix/store && exec @syncthing-wrapper@ + StandardErrorPath + /home/hm-user/Library/Logs/Syncthing/syncthing-stderr.log + StandardOutPath + /home/hm-user/Library/Logs/Syncthing/syncthing-stdout.log \ No newline at end of file