From 016b4bfac458f47375716369d2dee3195552421f Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Fri, 22 Nov 2019 23:46:39 +1300 Subject: [PATCH] syncthing: add private folder --- configs/sterni/syncthing.nix | 4 ++++ configs/workhorse/syncthing.nix | 16 ++++++++++++---- system/all/syncthing.nix | 5 +++++ 3 files changed, 21 insertions(+), 4 deletions(-) diff --git a/configs/sterni/syncthing.nix b/configs/sterni/syncthing.nix index 48298ff..98f0529 100644 --- a/configs/sterni/syncthing.nix +++ b/configs/sterni/syncthing.nix @@ -15,6 +15,10 @@ # on encrypted drive # ------------------ + private = { + enable = true; + path = "/home/palo/private"; + }; desktop = { enable = true; path = "/home/palo/desktop"; diff --git a/configs/workhorse/syncthing.nix b/configs/workhorse/syncthing.nix index 8495e24..6154e78 100644 --- a/configs/workhorse/syncthing.nix +++ b/configs/workhorse/syncthing.nix @@ -17,6 +17,14 @@ # on encrypted hard drive # ----------------------- + private = { + enable = true; + path = "/home/syncthing/private"; + versioning = { + type = "simple"; + params.keep = "10"; + }; + }; desktop = { enable = true; path = "/home/syncthing/desktop"; @@ -29,10 +37,10 @@ params.keep = "10"; }; }; - fotos = { - enable = true; - path = "/home/syncthing/fotos"; - }; + fotos = { + enable = true; + path = "/home/syncthing/fotos"; + }; lost-fotos = { enable = true; path = "/home/syncthing/lost-fotos.ct"; diff --git a/system/all/syncthing.nix b/system/all/syncthing.nix index 90b8e18..2c3a6aa 100644 --- a/system/all/syncthing.nix +++ b/system/all/syncthing.nix @@ -47,6 +47,11 @@ with lib; # needs to be on encrypted drives # ------------------------------- + private = { + enable = lib.mkDefault false; + watch = false; + devices = [ "workout" "workhorse" "pepe" "sterni" "porani" ]; + }; desktop = { enable = lib.mkDefault false; watch = false;