diff options
| author | Mike Vink <mike@pionative.com> | 2024-02-11 13:03:07 +0100 |
|---|---|---|
| committer | Mike Vink <mike@pionative.com> | 2024-02-11 13:03:07 +0100 |
| commit | 2524a1b80a983d0e4ef4796477bd2a8c812acb69 (patch) | |
| tree | 42601fbb84db04bb68f0e54330aaaaa4a2926e91 /profiles | |
| parent | cb16c6b5c8047fd4e1f0696f614570c5a0779794 (diff) | |
error
Diffstat (limited to 'profiles')
| -rw-r--r-- | profiles/core/configuration.nix | 3 | ||||
| -rw-r--r-- | profiles/core/syncthing.nix | 14 |
2 files changed, 11 insertions, 6 deletions
diff --git a/profiles/core/configuration.nix b/profiles/core/configuration.nix index 8d113cb..36dc255 100644 --- a/profiles/core/configuration.nix +++ b/profiles/core/configuration.nix @@ -1,4 +1,5 @@ { + machine, config, pkgs, lib, @@ -65,7 +66,7 @@ file pstree bc - ] ++ optionals (!pkgs.stdenv.isDarwin) [ + ] ++ optionals (!machine.isDarwin) [ pkgsi686Linux.glibc gdb pciutils 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); + }; }; } |
