mirror of
https://github.com/tw93/Mole.git
synced 2026-02-16 04:21:10 +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
|
note_activity
|
||||||
fi
|
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"
|
safe_clean ~/.gitconfig.lock "Git config lock"
|
||||||
end_section
|
end_section
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user