From e9b706bef7facaacc7881c9336401231d343ffee Mon Sep 17 00:00:00 2001 From: Peter Kling <1018801+pitkling@users.noreply.github.com> Date: Thu, 1 Jan 2026 13:04:41 +0100 Subject: [PATCH] syncthing: activate logging for macOS agents --- modules/services/syncthing.nix | 4 ++++ tests/modules/services/syncthing/expected-agent.plist | 4 ++++ 2 files changed, 8 insertions(+) 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