diff options
| author | Mike Vink <ivi@vinkies.net> | 2024-02-11 12:15:06 +0100 |
|---|---|---|
| committer | Mike Vink <ivi@vinkies.net> | 2024-02-11 12:15:06 +0100 |
| commit | c5ce00c6ffbf3be933c28b5c0d34afb987da26c3 (patch) | |
| tree | 3742d06c91989da767016343caee20855864da0d /profiles/core/syncthing.nix | |
| parent | 07b74536f26966212d21e2eb7553bcba4a8153f7 (diff) | |
starting to work on syncthing maco
Diffstat (limited to 'profiles/core/syncthing.nix')
| -rw-r--r-- | profiles/core/syncthing.nix | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/profiles/core/syncthing.nix b/profiles/core/syncthing.nix index ebccdb4..d735cca 100644 --- a/profiles/core/syncthing.nix +++ b/profiles/core/syncthing.nix @@ -1,5 +1,14 @@ {lib,...}: with lib; { - hm.services.syncthing = { + services.syncthing = { enable = true; + user = ivi.username; + inherit (config.ivi) group; + overrideDevices = true; + overrideFolders = true; + + devices = mapAttrs (_: m: { + inherit (m.syncthing) id; + introducer = m.isServer; + }) (filterAttrs (_: m: m.syncthing.enable) ivi.machines); }; } |
