From 5d21577e241af9349a4470ecc4ce9947fdd5b901 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 26 Apr 2023 20:38:37 -0300 Subject: bin/gc: Restrict Guix GC to 1 month old data --- bin/gc | 8 ++++---- 1 file 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 } -- cgit v1.2.3