diff options
author | EuAndreh <eu@euandre.org> | 2023-04-26 20:38:37 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-04-26 20:38:37 -0300 |
commit | 5d21577e241af9349a4470ecc4ce9947fdd5b901 (patch) | |
tree | 38bb5ddb809e5a28931d2ac616bbbe35ecc557ab /bin/gc | |
parent | bin/tmp: Assume $DIR is persistent, so we do not need to recreate always (diff) | |
download | dotfiles-5d21577e241af9349a4470ecc4ce9947fdd5b901.tar.gz dotfiles-5d21577e241af9349a4470ecc4ce9947fdd5b901.tar.xz |
bin/gc: Restrict Guix GC to 1 month old data
Diffstat (limited to 'bin/gc')
-rwxr-xr-x | bin/gc | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -83,12 +83,12 @@ gc_guix() { return fi - guix home delete-generations - guix gc -d + guix home delete-generations 1m + guix gc -d 1m if [ -e /var/guix/profiles/system ]; then - pass show "$(hostname)"/andreh | head -n1 | sudo -iS guix system delete-generations - pass show "$(hostname)"/andreh | head -n1 | sudo -iS guix gc -d + pass show "$(hostname)"/andreh | head -n1 | sudo -iS guix system delete-generations 1m + pass show "$(hostname)"/andreh | head -n1 | sudo -iS guix gc -d 1m fi } |