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:
10
bin/clean.sh
10
bin/clean.sh
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user