From 958a3367ba20ded22dfdc5c488378f574c61afc1 Mon Sep 17 00:00:00 2001 From: insert Date: Sat, 4 May 2024 21:05:15 -0400 Subject: [PATCH] add borg prune --- special/insertpclinux.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/special/insertpclinux.nix b/special/insertpclinux.nix index 6a3ef3b..0e5adce 100644 --- a/special/insertpclinux.nix +++ b/special/insertpclinux.nix @@ -19,7 +19,7 @@ }; in { services.sunshine = { - package = patched.sunshine; + package = patched_pkgs.sunshine; enable = true; autoStart = true; capSysAdmin = true; @@ -57,6 +57,13 @@ encryption.mode = "repokey-blake2"; encryption.passCommand = "cat ${config.age.secrets.borg.path}"; compression = "auto,zstd"; + prune.keep = { + within = "1d"; + daily = 10; + weekly = 4; + monthly = 2; + }; + readWritePaths = [ "/mnt/NAS-backup/insertpclinux-insert" ]; repo = "/mnt/NAS-backup/insertpclinux-insert"; user = "insert"; startAt = "daily";