aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-04-26 20:38:37 -0300
committerEuAndreh <eu@euandre.org>2023-04-26 20:38:37 -0300
commit5d21577e241af9349a4470ecc4ce9947fdd5b901 (patch)
tree38bb5ddb809e5a28931d2ac616bbbe35ecc557ab
parentbin/tmp: Assume $DIR is persistent, so we do not need to recreate always (diff)
downloaddotfiles-5d21577e241af9349a4470ecc4ce9947fdd5b901.tar.gz
dotfiles-5d21577e241af9349a4470ecc4ce9947fdd5b901.tar.xz
bin/gc: Restrict Guix GC to 1 month old data
-rwxr-xr-xbin/gc8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/gc b/bin/gc
index 32fa6c9..49f25ce 100755
--- a/bin/gc
+++ b/bin/gc
@@ -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
}