From d43b79e26538d1c906b86b79f739cde830415595 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Fri, 3 May 2024 21:19:45 -0400 Subject: [PATCH] syncthing: added versioning settings --- nixosModules/services/syncthing/default.nix | 11 +++++++++++ nixosModules/services/syncthing/syncMusic.nix | 4 ++++ 2 files changed, 15 insertions(+) diff --git a/nixosModules/services/syncthing/default.nix b/nixosModules/services/syncthing/default.nix index 551638e8..86cc403f 100644 --- a/nixosModules/services/syncthing/default.nix +++ b/nixosModules/services/syncthing/default.nix @@ -45,11 +45,22 @@ id = "default"; path = "/home/${config.alyraffauf.services.syncthing.user}/sync"; devices = ["brawly" "fallarbor" "gsgmba" "iphone12" "lavaridge" "mauville" "petalburg" "rustboro" "mossdeep" "wattson" "winona"]; + versioning = { + type = "staggered"; + params = { + cleanInterval = "3600"; + maxAge = "365"; + }; + }; }; "camera" = { id = "fcsgh-dlxys"; path = "/home/${config.alyraffauf.services.syncthing.user}/pics/camera"; devices = ["brawly" "fallarbor" "lavaridge" "mauville" "petalburg" "rustboro" "wattson" "winona"]; + versioning = { + type = "trashcan"; + params.cleanoutDays = "15"; + }; }; }; }; diff --git a/nixosModules/services/syncthing/syncMusic.nix b/nixosModules/services/syncthing/syncMusic.nix index b5c9d517..4d172631 100644 --- a/nixosModules/services/syncthing/syncMusic.nix +++ b/nixosModules/services/syncthing/syncMusic.nix @@ -25,6 +25,10 @@ id = "6nzmu-z9der"; path = config.alyraffauf.services.syncthing.syncMusicPath; devices = ["lavaridge" "mauville" "petalburg" "rustboro" "wattson"]; + versioning = { + type = "trashcan"; + params.cleanoutDays = "1"; + }; }; }; };