ci/cache: Prune profile generations
Update docs / update (push) Failing after 1m5s
CI / Check, build and cache nixfiles (push) Failing after 3h5m51s

Explicitly remove expired generations from the nonstandard Harmonia
profile before collecting garbage. This keeps old CI closures from
remaining rooted until the cache exhausts its inodes.
This commit is contained in:
2026-08-25 08:46:45 +01:00
parent e875971237
commit adea4bd9e5
2 changed files with 6 additions and 3 deletions
+4 -1
View File
@@ -12,7 +12,10 @@ remote_cmd() {
collect_garbage() {
echo "Collecting garbage..."
remote_cmd nix-collect-garbage --delete-older-than 60d
remote_cmd nix-env \
-p "$REMOTE_STORE"/nix/var/nix/profiles/nixfiles \
--delete-generations 60d
remote_cmd nix-collect-garbage
}
umask_old=$(umask)