nix-community / home-manager

Manage a user environment using Nix [maintainer=@rycee]
https://nix-community.github.io/home-manager/
MIT License
7.14k stars 1.85k forks source link

syncthing: expand declarative config to Darwin #6104

Open pitkling opened 6 days ago

pitkling commented 6 days ago

Description

This PRs extends the recently merged PR #5616, which expanded the Synching config to allow declarative settings under Linux, such that it also works under Darwin.

To simplify the review process, I left split the PR into several commits for now:

There might be better ways to coordinate the two launchd agents I'm not aware of. But I have had this running flawlessly for over two months now (on four Darwin and two Linux machines sharing various folders).

Fixes #4049 for Darwin systems.

Checklist

Maintainer CC

@karaolidis (pinging as author of the original (linux-specific) PR #5616) @rycee (maintainer)