1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-04 17:24:45 +00:00

feat: add Nix garbage collection to developer tools cleanup (#45)

This commit is contained in:
Mohammed Esafi
2025-11-09 02:12:24 +01:00
committed by GitHub
parent 45adddb2ac
commit caeb1c3891

View File

@@ -693,6 +693,16 @@ perform_cleanup() {
note_activity
fi
# 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
else
echo -e " ${YELLOW}${NC} Nix garbage collection (would clean)"
fi
note_activity
fi
safe_clean ~/.gitconfig.lock "Git config lock"
end_section