summaryrefslogtreecommitdiff
path: root/nixhome/Scripts/nix_garbage
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2022-08-22 13:18:02 +0200
committerJulian T <julian@jtle.dk>2022-08-22 13:20:26 +0200
commite0ed64092db25f98d3665605693255c3192efeb2 (patch)
treec79697e7e784d24df887726cb4515cabe8c34e47 /nixhome/Scripts/nix_garbage
parent94eac62995ea3605faf2e3d3f902a6ea92e7f487 (diff)
updates from laptop
Diffstat (limited to 'nixhome/Scripts/nix_garbage')
-rwxr-xr-xnixhome/Scripts/nix_garbage6
1 files changed, 3 insertions, 3 deletions
diff --git a/nixhome/Scripts/nix_garbage b/nixhome/Scripts/nix_garbage
index b7e8f22..db492ab 100755
--- a/nixhome/Scripts/nix_garbage
+++ b/nixhome/Scripts/nix_garbage
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -x
-nix-env --delete-generations +1
-home-manager expire-generations "-0 days"
-sudo nix-collect-garbage -d
+nix-env --delete-generations old
+home-manager expire-generations "0 days"
+sudo nix-collect-garbage --delete-older-than 10
sudo nixos-rebuild boot