diff options
| author | Mike Vink <mike@pionative.com> | 2024-07-14 06:40:52 +0200 |
|---|---|---|
| committer | Mike Vink <mike@pionative.com> | 2024-07-14 06:40:52 +0200 |
| commit | 98c31cac3e931023b5afeb209af6b6eed2a025c7 (patch) | |
| tree | 4f78891affa3ce2cfbb7f0b1b3efc31d68c87ab7 /profiles/core/syncthing.nix | |
| parent | f56f38fc344a80244266e0b69f909775599ba5b2 (diff) | |
wip
Diffstat (limited to 'profiles/core/syncthing.nix')
| -rw-r--r-- | profiles/core/syncthing.nix | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/profiles/core/syncthing.nix b/profiles/core/syncthing.nix index f8d6ee2..796a3d7 100644 --- a/profiles/core/syncthing.nix +++ b/profiles/core/syncthing.nix @@ -1,5 +1,5 @@ -{machine, config, lib,...}: with lib; let - group = if machine.isDarwin then (builtins.toString config.ivi.gid) else config.ivi.group; +{machines, machine, config, lib,...}: with lib; let + group = if machine.isDarwin then (builtins.toString config.my.gid) else config.my.group; in { imports = [ (mkAliasOptionModule [ "synced" ] [ "services" "syncthing" "settings" "folders" ]) @@ -7,16 +7,16 @@ in { services.syncthing = { enable = machine.syncthing.enable; - user = ivi.username; + user = my.username; inherit group; - dataDir = config.ivi.home; + dataDir = config.my.home; overrideDevices = true; overrideFolders = true; key = config.secrets.syncthing.path; settings = let - allDevices = (filterAttrs (_: m: m.syncthing.id != "") ivi.machines); + allDevices = (filterAttrs (_: m: m.syncthing.id != "") machines); in { gui = { theme = "default"; @@ -43,17 +43,17 @@ in { allNames = attrNames allDevices; in { my = { - path = "${config.ivi.home}/sync/my"; + path = "${config.my.home}/sync/my"; devices = allNames; versioning = simple; }; pictures = { - path = "${config.ivi.home}/sync/pictures"; + path = "${config.my.home}/sync/pictures"; devices = allNames; versioning = trashcan; }; password-store = { - path = "${config.ivi.home}/sync/password-store"; + path = "${config.my.home}/sync/password-store"; devices = allNames; versioning = trashcan; }; |
