From c9b2f41596a2e5e04acc6e85a059d3a0be013c54 Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Thu, 7 Nov 2019 13:42:23 +0100 Subject: [PATCH] syncthing: configured versioning everywhere --- configs/porani/syncthing.nix | 8 ++++++-- configs/sterni/syncthing.nix | 4 ++++ configs/workhorse/syncthing.nix | 8 ++++++-- configs/workout/syncthing.nix | 8 ++++++-- system/all/syncthing.nix | 5 +++++ 5 files changed, 27 insertions(+), 6 deletions(-) diff --git a/configs/porani/syncthing.nix b/configs/porani/syncthing.nix index 0d2370c..8475bc6 100644 --- a/configs/porani/syncthing.nix +++ b/configs/porani/syncthing.nix @@ -19,10 +19,14 @@ enable = true; path = "/var/lib/syncthing/finance"; versioning = { - enable = true; - keep = 10; + type = "simple"; + params.keep = "10"; }; }; + fotos = { + enable = true; + path = "/var/lib/syncthing/fotos"; + }; lost-fotos = { enable = true; path = "/var/lib/syncthing/lost-fotos.ct"; diff --git a/configs/sterni/syncthing.nix b/configs/sterni/syncthing.nix index f93f3c2..48298ff 100644 --- a/configs/sterni/syncthing.nix +++ b/configs/sterni/syncthing.nix @@ -27,6 +27,10 @@ enable = true; path = "/home/palo/.lost-fotos.ct"; }; + fotos = { + enable = true; + path = "/home/palo/fotos"; + }; samples = { enable = true; path = "/home/palo/samples"; diff --git a/configs/workhorse/syncthing.nix b/configs/workhorse/syncthing.nix index bec3859..8495e24 100644 --- a/configs/workhorse/syncthing.nix +++ b/configs/workhorse/syncthing.nix @@ -25,10 +25,14 @@ enable = true; path = "/home/syncthing/finance"; versioning = { - enable = true; - keep = 10; + type = "simple"; + params.keep = "10"; }; }; + fotos = { + enable = true; + path = "/home/syncthing/fotos"; + }; lost-fotos = { enable = true; path = "/home/syncthing/lost-fotos.ct"; diff --git a/configs/workout/syncthing.nix b/configs/workout/syncthing.nix index 5c4f3a3..3bb5cfe 100644 --- a/configs/workout/syncthing.nix +++ b/configs/workout/syncthing.nix @@ -24,14 +24,18 @@ enable = true; path = "/home/palo/finance"; versioning = { - enable = true; - keep = 10; + type = "simple"; + params.keep = "10"; }; }; lost-fotos = { enable = true; path = "/home/palo/.lost-fotos.ct"; }; + fotos = { + enable = true; + path = "/home/palo/fotos"; + }; # no need to be encrypted # ----------------------- diff --git a/system/all/syncthing.nix b/system/all/syncthing.nix index 3d709f0..90b8e18 100644 --- a/system/all/syncthing.nix +++ b/system/all/syncthing.nix @@ -57,6 +57,11 @@ with lib; watch = false; devices = [ "workout" "workhorse" "pepe" "sterni" "porani" ]; }; + fotos = { + enable = lib.mkDefault false; + watch = false; + devices = [ "workout" "workhorse" "pepe" "sterni" "porani" ]; + }; # no need to be stored on encrypted drives # ----------------------------------------