about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-08-02 10:06:44 +0900
committersefidel <contact@sefidel.net>2023-08-02 10:06:44 +0900
commitaf1869433cb2da98b8e63194628f4641bdbe376e (patch)
treed13937b2e0b00262d8e01c8dd20a16c4015ec9e0 /nixos
parentb832ea4f294d378809c28b40b1913424c224530e (diff)
downloadnixrc-af1869433cb2da98b8e63194628f4641bdbe376e.tar.gz
nixrc-af1869433cb2da98b8e63194628f4641bdbe376e.zip
feat(nixos/alpha): setup auto prune
Diffstat (limited to 'nixos')
-rw-r--r--nixos/alpha/configuration.nix8
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}";