summaryrefslogtreecommitdiff
path: root/nixhome/Scripts/nix_garbage
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2021-08-18 18:12:03 +0200
committerJulian T <julian@jtle.dk>2021-08-18 18:12:03 +0200
commitaa63df9abf83e558fcadbdb25a6182fde81531d9 (patch)
tree6cd6f86fc61bc4256f469da0e1377a27d648513b /nixhome/Scripts/nix_garbage
parenta774c5b13dcbb197615aff8f90748031255be3cd (diff)
More software and garbage rules
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 ed088dd..4e49508 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 "-1 days"
-sudo nix-collect-garbage --delete-older-than 10d
+nix-env --delete-generations +2
+home-manager expire-generations "-10 days"
+sudo nix-collect-garbage --delete-older-than 10
sudo nixos-rebuild boot