From 71d8daf78279e918198fd4286af4f8aba7b26378 Mon Sep 17 00:00:00 2001 From: coolneng Date: Wed, 4 Aug 2021 15:49:51 +0100 Subject: [PATCH] Remove deprecated declarative set in Syncthing --- modules/datasync.nix | 95 +++++++++++++++++++++----------------------- 1 file changed, 45 insertions(+), 50 deletions(-) diff --git a/modules/datasync.nix b/modules/datasync.nix index ec10928..d533f16 100644 --- a/modules/datasync.nix +++ b/modules/datasync.nix @@ -16,65 +16,60 @@ enable = true; user = "coolneng"; dataDir = "/home/coolneng"; - declarative = { - devices = { - zion = { - id = - "FLI2RS7-GNI5PDM-SQRNF7P-YJIOXJ7-46FRPEI-NRLQGBC-HXRWG7O-RKOVLAF"; - addresses = [ "tcp://192.168.13.2:22000" ]; + devices.zion = { + id = "FLI2RS7-GNI5PDM-SQRNF7P-YJIOXJ7-46FRPEI-NRLQGBC-HXRWG7O-RKOVLAF"; + addresses = [ "tcp://192.168.13.2:22000" ]; + }; + folders = { + Documents = { + id = "wusdj-bfjkr"; + path = "/home/coolneng/Documents"; + devices = [ "zion" ]; + versioning = { + type = "simple"; + params.keep = "5"; }; }; - folders = { - Documents = { - id = "wusdj-bfjkr"; - path = "/home/coolneng/Documents"; - devices = [ "zion" ]; - versioning = { - type = "simple"; - params.keep = "5"; - }; - }; - Notes = { - id = "kafhz-bfmzm"; - path = "/home/coolneng/Notes"; - devices = [ "zion" ]; - versioning = { - type = "simple"; - params.keep = "5"; - }; + Notes = { + id = "kafhz-bfmzm"; + path = "/home/coolneng/Notes"; + devices = [ "zion" ]; + versioning = { + type = "simple"; + params.keep = "5"; }; + }; - Music = { - id = "2aqt7-vpprc"; - path = "/home/coolneng/Music"; - devices = [ "zion" ]; - }; + Music = { + id = "2aqt7-vpprc"; + path = "/home/coolneng/Music"; + devices = [ "zion" ]; + }; - Photos = { - id = "mjibc-ustcg"; - path = "/home/coolneng/Photos"; - devices = [ "zion" ]; - }; + Photos = { + id = "mjibc-ustcg"; + path = "/home/coolneng/Photos"; + devices = [ "zion" ]; + }; - Projects = { - id = "cjhmu-avy9v"; - path = "/home/coolneng/Projects"; - devices = [ "zion" ]; - }; + Projects = { + id = "cjhmu-avy9v"; + path = "/home/coolneng/Projects"; + devices = [ "zion" ]; + }; - Phone = { - id = "m2007j20cg_288y-photos"; - type = "receiveonly"; - path = "/home/coolneng/Photos/Phone"; - devices = [ "zion" ]; - }; + Phone = { + id = "m2007j20cg_288y-photos"; + type = "receiveonly"; + path = "/home/coolneng/Photos/Phone"; + devices = [ "zion" ]; + }; - Files = { - id = "tsk52-u6rbk"; - path = "/home/coolneng/Files"; - devices = [ "zion" ]; - }; + Files = { + id = "tsk52-u6rbk"; + path = "/home/coolneng/Files"; + devices = [ "zion" ]; }; }; };