diff options
author | sefidel <contact@sefidel.net> | 2023-08-02 10:06:44 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2023-08-02 10:06:44 +0900 |
commit | af1869433cb2da98b8e63194628f4641bdbe376e (patch) | |
tree | d13937b2e0b00262d8e01c8dd20a16c4015ec9e0 /nixos/alpha | |
parent | b832ea4f294d378809c28b40b1913424c224530e (diff) | |
download | nixrc-af1869433cb2da98b8e63194628f4641bdbe376e.tar.gz nixrc-af1869433cb2da98b8e63194628f4641bdbe376e.zip |
feat(nixos/alpha): setup auto prune
Diffstat (limited to 'nixos/alpha')
-rw-r--r-- | nixos/alpha/configuration.nix | 8 |
1 files changed, 8 insertions, 0 deletions
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}"; |