From 1df277a1996de8248694132b829675515ef1a7a4 Mon Sep 17 00:00:00 2001 From: Andrei Lapshin Date: Wed, 31 Jul 2024 16:02:43 +0200 Subject: [PATCH] Setup versioning for Syncthing folders --- hosts/carbon/syncthing.nix | 12 ++++++++++++ hosts/desktop/syncthing.nix | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/hosts/carbon/syncthing.nix b/hosts/carbon/syncthing.nix index 4e0d8ae..9754ee5 100644 --- a/hosts/carbon/syncthing.nix +++ b/hosts/carbon/syncthing.nix @@ -83,11 +83,23 @@ in id = "documents"; label = "Documents"; devices = [ "carbon" "desktop" "pixel" ]; + versioning = { + type = "simple"; + params = { + keep = "7"; + }; + }; }; "${cfg.dataDir}/${username}/syncthing" = { id = "syncthing"; label = "Syncthing"; devices = [ "carbon" "desktop" "pixel" ]; + versioning = { + type = "simple"; + params = { + keep = "7"; + }; + }; }; }; }; diff --git a/hosts/desktop/syncthing.nix b/hosts/desktop/syncthing.nix index 4e0d8ae..9754ee5 100644 --- a/hosts/desktop/syncthing.nix +++ b/hosts/desktop/syncthing.nix @@ -83,11 +83,23 @@ in id = "documents"; label = "Documents"; devices = [ "carbon" "desktop" "pixel" ]; + versioning = { + type = "simple"; + params = { + keep = "7"; + }; + }; }; "${cfg.dataDir}/${username}/syncthing" = { id = "syncthing"; label = "Syncthing"; devices = [ "carbon" "desktop" "pixel" ]; + versioning = { + type = "simple"; + params = { + keep = "7"; + }; + }; }; }; };