summaryrefslogtreecommitdiff
path: root/profiles/core/syncthing.nix
diff options
context:
space:
mode:
authorMike Vink <mike@pionative.com>2024-02-11 22:18:08 +0100
committerMike Vink <mike@pionative.com>2024-02-11 22:18:08 +0100
commit6becf0ceea7782d8fce32203b7299b495f74ba3a (patch)
treedccd85bc2f09bf55fe82c0a8a0b53e5495bef3f2 /profiles/core/syncthing.nix
parent86aff11de7edf77d0aa69e9f211325162a6fed0b (diff)
sync passwords
Diffstat (limited to 'profiles/core/syncthing.nix')
-rw-r--r--profiles/core/syncthing.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/profiles/core/syncthing.nix b/profiles/core/syncthing.nix
index 7135fad..e076d8d 100644
--- a/profiles/core/syncthing.nix
+++ b/profiles/core/syncthing.nix
@@ -1,6 +1,10 @@
{machine, config, lib,...}: with lib; let
group = if machine.isDarwin then (builtins.toString config.ivi.gid) else config.ivi.group;
in {
+ imports = [
+ (mkAliasOptionModule [ "synced" ] [ "services" "syncthing" "settings" "folders" ])
+ ];
+
services.syncthing = {
enable = true;
user = ivi.username;
@@ -48,6 +52,11 @@ in {
devices = allNames;
versioning = trashcan;
};
+ password-store = {
+ path = "${config.ivi.home}/sync/password-store";
+ devices = allNames;
+ versioning = trashcan;
+ };
};
};
};