diff options
author | Julian T <julian@jtle.dk> | 2022-07-19 12:07:45 +0200 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2022-07-19 12:07:45 +0200 |
commit | 94eac62995ea3605faf2e3d3f902a6ea92e7f487 (patch) | |
tree | 169c4d83e79c528f91a275817bba2f52320dc1c4 /nixhome/Scripts/nix_garbage | |
parent | 616296c9bc1bd8bea80470ccf89a38c969147081 (diff) |
Changes to home-manager and garbage collecting
Diffstat (limited to 'nixhome/Scripts/nix_garbage')
-rwxr-xr-x | nixhome/Scripts/nix_garbage | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nixhome/Scripts/nix_garbage b/nixhome/Scripts/nix_garbage index 4e49508..b7e8f22 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 +2 -home-manager expire-generations "-10 days" -sudo nix-collect-garbage --delete-older-than 10 +nix-env --delete-generations +1 +home-manager expire-generations "-0 days" +sudo nix-collect-garbage -d sudo nixos-rebuild boot |