From 0b70e3952f882fb112d440c71959dbd4b2d6c37a Mon Sep 17 00:00:00 2001 From: pazpi Date: Wed, 4 Feb 2026 13:40:33 +0100 Subject: [PATCH] Keep at least 15 days of cache --- .forgejo/workflows/auto-update-build.yaml | 1 - hosts/forgejo-runner/default.nix | 11 ++++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/auto-update-build.yaml b/.forgejo/workflows/auto-update-build.yaml index c5c0e3e..a9ae6f0 100644 --- a/.forgejo/workflows/auto-update-build.yaml +++ b/.forgejo/workflows/auto-update-build.yaml @@ -153,5 +153,4 @@ jobs: - name: Cleanup if: always() run: | - nix-collect-garbage -d rm -rf result .direnv diff --git a/hosts/forgejo-runner/default.nix b/hosts/forgejo-runner/default.nix index c98974e..bd928d7 100644 --- a/hosts/forgejo-runner/default.nix +++ b/hosts/forgejo-runner/default.nix @@ -17,7 +17,10 @@ in my = { utils = { - commons.enable = true; + commons = { + enable = true; + gc.enable = false; + }; lxc-standard.enable = true; }; @@ -35,6 +38,12 @@ in virtualisation.proxmox.enable = true; }; + nix.gc = { + automatic = true; + dates = "daily"; + options = "--delete-older-than 15d"; + }; + # Extra packages needed for CI operations environment.systemPackages = with pkgs; [ git