diff options
author | Julian T <julian@jtle.dk> | 2021-08-18 18:12:03 +0200 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2021-08-18 18:12:03 +0200 |
commit | aa63df9abf83e558fcadbdb25a6182fde81531d9 (patch) | |
tree | 6cd6f86fc61bc4256f469da0e1377a27d648513b /nixhome/Scripts | |
parent | a774c5b13dcbb197615aff8f90748031255be3cd (diff) |
More software and garbage rules
Diffstat (limited to 'nixhome/Scripts')
-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 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 |