diff options
Diffstat (limited to 'profiles/core/syncthing.nix')
| -rw-r--r-- | profiles/core/syncthing.nix | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/profiles/core/syncthing.nix b/profiles/core/syncthing.nix index d735cca..e5c19f7 100644 --- a/profiles/core/syncthing.nix +++ b/profiles/core/syncthing.nix @@ -1,4 +1,4 @@ -{lib,...}: with lib; { +{config, lib,...}: with lib; { services.syncthing = { enable = true; user = ivi.username; @@ -6,9 +6,13 @@ overrideDevices = true; overrideFolders = true; - devices = mapAttrs (_: m: { - inherit (m.syncthing) id; - introducer = m.isServer; - }) (filterAttrs (_: m: m.syncthing.enable) ivi.machines); + key = config.secrets.syncthing.path; + + settings = { + devices = mapAttrs (_: m: { + inherit (m.syncthing) id; + introducer = m.isServer; + }) (filterAttrs (_: m: m.syncthing.enable) ivi.machines); + }; }; } |
