add a wrapper for nix-gc

This commit is contained in:
stupidcomputer 2024-10-29 00:09:25 -05:00
parent d0b8013497
commit ef4716c476
1 changed files with 7 additions and 0 deletions

7
builds/rebuild/nix-sanitation Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
printf "clearing out nix caches\n"
sudo nix-collect-garbage -d
nix-collect-garbage -d
sudo nix-store --optimize