From b515145f37e73371382bd2c26b8616700da28148 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sun, 10 Sep 2023 21:28:37 +0100 Subject: [PATCH] Update syncthing devices --- services/syncthing/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/services/syncthing/default.nix b/services/syncthing/default.nix index b19e3f54..9d5afbb7 100644 --- a/services/syncthing/default.nix +++ b/services/syncthing/default.nix @@ -1,5 +1,7 @@ { lib, user, group, ... }: -let devices = [ "Ion" "Legion" "Monarch" "Northstar" "Ronin" "Vanguard" ]; +let + devices = [ "Legion" "Monarch" "Northstar" "Ronin" "Vanguard" ]; + devicesWithPhone = devices ++ [ "Ion" ]; in { services.syncthing = { inherit user group; @@ -42,10 +44,10 @@ in { ignorePerms = true; }; "Documents" = { - inherit devices; id = "qc6qa-bipsd"; path = lib.mkDefault "~/Documents/Sync"; ignorePerms = true; + devices = devicesWithPhone; }; "Exports" = { inherit devices; @@ -54,22 +56,22 @@ in { ignorePerms = true; }; "Notes" = { - inherit devices; id = "4ggjz-5dyop"; path = lib.mkDefault "~/Notes"; ignorePerms = true; + devices = devicesWithPhone; }; "Pictures" = { - inherit devices; id = "ziuj8-rm6dn"; path = lib.mkDefault "~/Pictures"; ignorePerms = true; + devices = devicesWithPhone; }; "Zotero" = { - inherit devices; id = "huyvn-liwc9"; path = lib.mkDefault "~/Documents/Zotero"; ignorePerms = true; + devices = devicesWithPhone; }; }; };