diff options
author | EuAndreh <eu@euandre.org> | 2024-01-12 08:45:53 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-01-12 08:45:53 -0300 |
commit | 3b2d27457db9ef8911893fa1b843560f1ccab2eb (patch) | |
tree | f2912096f65014593c44b88bd129743e4337f58b /bin/gc | |
parent | etc/sh/rc: Use "\" as a shortcut in vi(1) for saving a file (diff) | |
download | dotfiles-3b2d27457db9ef8911893fa1b843560f1ccab2eb.tar.gz dotfiles-3b2d27457db9ef8911893fa1b843560f1ccab2eb.tar.xz |
Remove Nix/NixOS support from configuration and utilities
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 |