From af1869433cb2da98b8e63194628f4641bdbe376e Mon Sep 17 00:00:00 2001 From: sefidel Date: Wed, 2 Aug 2023 10:06:44 +0900 Subject: feat(nixos/alpha): setup auto prune --- nixos/alpha/configuration.nix | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'nixos/alpha') diff --git a/nixos/alpha/configuration.nix b/nixos/alpha/configuration.nix index 4c12ee9..d8b2fc3 100644 --- a/nixos/alpha/configuration.nix +++ b/nixos/alpha/configuration.nix @@ -116,6 +116,14 @@ # Rust build files "**/target" ]; + + prune.keep = { + within = "1d"; # Keep all archives from the last day + daily = 7; + weekly = 4; + monthly = 3; + }; + repo = "20963@hk-s020.rsync.net:rolling/alpha"; encryption.mode = "repokey-blake2"; encryption.passCommand = "cat ${config.sops.secrets.borg-alpha-rolling-pass.path}"; -- cgit 1.4.1