summaryrefslogtreecommitdiff
path: root/nixhome/Scripts/nix_garbage
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2021-07-17 22:19:52 +0200
committerJulian T <julian@jtle.dk>2021-07-17 22:19:52 +0200
commit9d2e9563583ed6547b9a52707ca0228e0096c7a5 (patch)
tree090c99ac22a39dfb0af55db97cc7071f436761c9 /nixhome/Scripts/nix_garbage
parent47d6427fa6d706b749636b49daae415df6c990b5 (diff)
Update scripts and applications
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 449e807..ed088dd 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 10d
-home-manager expire-generations "-10 days"
+nix-env --delete-generations +1
+home-manager expire-generations "-1 days"
sudo nix-collect-garbage --delete-older-than 10d
-
+sudo nixos-rebuild boot