1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-05 11:28:48 +00:00

Modify nix beyond 30 days.修改30天之外的nix

Modify nix beyond 30 days.
This commit is contained in:
Tw93
2025-11-09 09:14:59 +08:00
parent caeb1c3891
commit 16d2b74633

View File

@@ -696,7 +696,7 @@ perform_cleanup() {
# Nix package manager
if command -v nix-collect-garbage > /dev/null 2>&1; then
if [[ "$DRY_RUN" != "true" ]]; then
clean_tool_cache "Nix garbage collection" nix-collect-garbage -d
clean_tool_cache "Nix garbage collection" nix-collect-garbage --delete-older-than 30d
else
echo -e " ${YELLOW}${NC} Nix garbage collection (would clean)"
fi