diff --git a/x b/x index 1ac05b8..16bd495 100755 --- a/x +++ b/x @@ -315,17 +315,13 @@ gc) shift echo "Garbage collecting..." - nix-collect-garbage --delete-older-than "14d" - home-manager expire-generations "-14 days" + nix-collect-garbage --delete-older-than "7d" + home-manager expire-generations "-7 days" # Cleaning as root collects more stuff as well # See https://www.reddit.com/r/NixOS/comments/10107km/how_to_delete_old_generations_on_nixos/?s=8 ncg=$(which nix-collect-garbage) - sudo ${ncg} -d --delete-older-than "14d" - - if [[ "$NIXOS" -eq 1 ]]; then - echo "⏩️ Call x nixos boot to remove old generations from boot" - fi + sudo ${ncg} -d --delete-older-than "7d" ;; fmt)