From 9bd73d059e9018017f73c490f4806cde3e212b0a Mon Sep 17 00:00:00 2001 From: Tigor Hutasuhut Date: Fri, 21 Jun 2024 21:48:50 +0700 Subject: [PATCH] syncthing: added work laptop sync --- system/services/syncthing.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/system/services/syncthing.nix b/system/services/syncthing.nix index ee9e783..10aa012 100644 --- a/system/services/syncthing.nix +++ b/system/services/syncthing.nix @@ -41,6 +41,9 @@ in "/nas/redmage/images/laptop-kerja" = { label = "Redmage/Laptop-Kerja"; id = "Redmage/Laptop-Kerja"; + devices = [ + "work-laptop" + ]; }; "/nas/redmage/images/s20fe-sfw" = { label = "Redmage/S20FE"; @@ -65,6 +68,11 @@ in "onyx" ]; }; + "/nas/Syncthing/Sync/VPN" = { + label = "OpenVPN"; + id = "OpenVPN"; + devices = lib.attrsets.mapAttrsToList (key: _value: key) config.services.syncthing.settings.devices; + }; }; devices = { s20fe = { @@ -82,6 +90,11 @@ in id = "FSTIYS6-REFXIJX-KPLYC4L-QSZO46L-RV3VTPZ-VWVTE7O-Y663OZN-RTKP3QI"; autoAcceptFolders = true; }; + work-laptop = { + name = "Work Laptop"; + id = "BOU76IK-5AE7ARF-ZQDFOTX-KWUQL22-SAGXBYG-B75JRZA-L4MCYPU-OYTY5AU"; + autoAcceptFolders = true; + }; }; }; overrideFolders = true;