nix/modules/syncthing.nix
2025-08-29 07:37:29 +02:00

15 lines
No EOL
418 B
Nix

{ config, pkgs, lib, ... }:
{
# Enable Syncthing service with auto-start on macOS
services.syncthing = {
enable = true;
# Don't enable tray on macOS as it requires additional setup
tray.enable = false;
};
# Override the launchd agent to add RunAtLoad on macOS
launchd.agents.syncthing = lib.mkIf (pkgs.stdenv.isDarwin && config.services.syncthing.enable) {
config.RunAtLoad = true;
};
}