diff options
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); }; } |
