Keep at least 15 days of cache

This commit is contained in:
pazpi 2026-02-04 13:40:33 +01:00
parent 58f883b09e
commit 0b70e3952f
2 changed files with 10 additions and 2 deletions

View file

@ -153,5 +153,4 @@ jobs:
- name: Cleanup - name: Cleanup
if: always() if: always()
run: | run: |
nix-collect-garbage -d
rm -rf result .direnv rm -rf result .direnv

View file

@ -17,7 +17,10 @@ in
my = { my = {
utils = { utils = {
commons.enable = true; commons = {
enable = true;
gc.enable = false;
};
lxc-standard.enable = true; lxc-standard.enable = true;
}; };
@ -35,6 +38,12 @@ in
virtualisation.proxmox.enable = true; virtualisation.proxmox.enable = true;
}; };
nix.gc = {
automatic = true;
dates = "daily";
options = "--delete-older-than 15d";
};
# Extra packages needed for CI operations # Extra packages needed for CI operations
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
git git