diff options
Diffstat (limited to 'bin/gc')
-rwxr-xr-x | bin/gc | 21 |
1 files changed, 0 insertions, 21 deletions
@@ -18,7 +18,6 @@ help() { TYPE what to do GC on (default: all): - guix - - nix - trash - tmpdir - docker @@ -93,25 +92,6 @@ gc_guix() { fi } -gc_nix() { - if [ ! -e /nix/ ]; then - return - fi - - PROFILES=' - /nix/var/nix/profiles/per-user/root/channels - /nix/var/nix/profiles/system - ' - - for p in $PROFILES; do - pass show "$(hostname)"/andreh | head -n1 | - sudo -iS nix-env --delete-generations old -p "$p" - done - nix-env --delete-generations old - nix-store --gc - nix-collect-garbage -d -} - gc_trash() { yes | trash-empty } @@ -137,7 +117,6 @@ gc_docker() { TYPES=' guix -nix trash tmpdir docker |