From 2685edcd903a606737fa2a60968a7731fecb53fe Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Sat, 9 Nov 2024 05:12:12 -0600 Subject: [PATCH] update devices and folders --- .../services/syncthing/config/default.nix | 51 +++++++++++-------- 1 file changed, 30 insertions(+), 21 deletions(-) diff --git a/nixos/modules/nixos/services/syncthing/config/default.nix b/nixos/modules/nixos/services/syncthing/config/default.nix index 2417d76..3a9819d 100644 --- a/nixos/modules/nixos/services/syncthing/config/default.nix +++ b/nixos/modules/nixos/services/syncthing/config/default.nix @@ -6,32 +6,41 @@ }; devices = { - legiondary = { - name = "legiondary"; - id = "O4WI2YC-BZBPF2W-2ALNQ2D-UOP3BK5-ZDSEHVH-DIHS2FG-BSVJCXG-GF47XAE"; - addresses = [ "dynamic" ]; - }; - shadowfax = { - name = "shadowfax"; - id = "U3DS7CW-GBZT44M-IFP3MOB-AV6SHVY-YFVEL5P-HE3ACC5-NDDGAOB-HOTKJAC"; - addresses = [ "tcp://10.1.1.61:22000" ]; - }; - gandalf = { - name = "gandalf"; - id = "2VYHSOB-4QE3UIJ-EFKAD4D-J7YTLYG-4KF36C2-3SOLD4G-MFR6NK3-C2VSAQV"; - addresses = [ "tcp://10.1.1.13:22000" ]; - }; - telchar = { - name = "telchar"; - id = "ENO4NVK-DUKOLUT-ASJZOEI-IFBVBTA-GDNWKWS-DQF3TZW-JJ72VVB-VWTHNAH"; - addresses = [ "dynamic" ]; + gandalf = { + name = "gandalf"; + id = "2VYHSOB-4QE3UIJ-EFKAD4D-J7YTLYG-4KF36C2-3SOLD4G-MFR6NK3-C2VSAQV"; + addresses = [ "tcp://10.1.1.13:22000" ]; + }; + legiondary = { + name = "legiondary"; + id = "O4WI2YC-BZBPF2W-2ALNQ2D-UOP3BK5-ZDSEHVH-DIHS2FG-BSVJCXG-GF47XAE"; + addresses = [ "dynamic" ]; + }; + shadowfax = { + name = "shadowfax"; + id = "U3DS7CW-GBZT44M-IFP3MOB-AV6SHVY-YFVEL5P-HE3ACC5-NDDGAOB-HOTKJAC"; + addresses = [ "tcp://10.1.1.61:22000" ]; + }; + telchar = { + name = "telchar"; + id = "ENO4NVK-DUKOLUT-ASJZOEI-IFBVBTA-GDNWKWS-DQF3TZW-JJ72VVB-VWTHNAH"; + addresses = [ "dynamic" ]; }; }; folders = { - "~/projects" = { + projects = { id = "projects"; - devices = [ "legiondary" "shadowfax" "gandalf" "telchar" ]; + path = "~/projects"; + versioning = { + type = "simple"; + params.keep = 10; + }; + devices = [ + "legiondary" + "shadowfax" + "gandalf" + ]; }; }; }