From 8716f2b308279ac3c47fbab0e3806747859c0ca9 Mon Sep 17 00:00:00 2001 From: schweby Date: Thu, 27 Jan 2022 22:52:49 +0100 Subject: [PATCH] services/syncthing: update config format --- services/syncthing.nix | 46 ++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 24 deletions(-) diff --git a/services/syncthing.nix b/services/syncthing.nix index 9b05ace..c10c65e 100644 --- a/services/syncthing.nix +++ b/services/syncthing.nix @@ -6,32 +6,30 @@ openDefaultPorts = true; configDir = "/persist/var/lib/syncthing/"; dataDir = "/persist/data/syncthing/"; - declarative = { - devices = { - schweby = { - addresses = []; # empty = dynamic - id = "YF7DNNS-B63GERK-YFQ7G7Q-2DG7557-VIWFOTK-R3JOS63-T76POBQ-F6MO6AH"; - }; - raphael-laptop = { - addresses = []; # empty = dynamic - id = "72B3T74-NOMJV3X-EVJXTJF-5GGAEZB-ZDKBHXQ-VQNRYEU-YCPA2JP-L6NGAAG"; - }; - # zauberberg - conway = { - addresses = []; # empty = dynamic - id = "HV7IU2N-Q4W3A7F-BSASR43-OB575SM-47FY2UW-7N5GMFM-PX3LWRN-HXBXMQF"; - }; + devices = { + schweby = { + addresses = []; # empty = dynamic + id = "YF7DNNS-B63GERK-YFQ7G7Q-2DG7557-VIWFOTK-R3JOS63-T76POBQ-F6MO6AH"; }; + raphael-laptop = { + addresses = []; # empty = dynamic + id = "72B3T74-NOMJV3X-EVJXTJF-5GGAEZB-ZDKBHXQ-VQNRYEU-YCPA2JP-L6NGAAG"; + }; + # zauberberg + conway = { + addresses = []; # empty = dynamic + id = "HV7IU2N-Q4W3A7F-BSASR43-OB575SM-47FY2UW-7N5GMFM-PX3LWRN-HXBXMQF"; + }; + }; - folders = { - "/persist/data/syncthing/hacc/" = { - id = "qt2ly-xvvvs"; - devices = [ "schweby" "conway" "raphael-laptop"]; - type = "receiveonly"; - versioning = { - type = "simple"; - params.keep = "10"; - }; + folders = { + "/persist/data/syncthing/hacc/" = { + id = "qt2ly-xvvvs"; + devices = [ "schweby" "conway" "raphael-laptop"]; + type = "receiveonly"; + versioning = { + type = "simple"; + params.keep = "10"; }; }; };