diff options
author | Julian T <julian@jtle.dk> | 2021-06-06 16:58:32 +0200 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2021-06-06 16:58:32 +0200 |
commit | 47d6427fa6d706b749636b49daae415df6c990b5 (patch) | |
tree | beb968648cec3c82d78dadc832af84e8f65ea6dd /nixhome/Scripts/nix_garbage | |
parent | 894a7cda68112c77c0fd98cad9cf1517aabb4cfa (diff) |
Add nix_garbage collect script
Diffstat (limited to 'nixhome/Scripts/nix_garbage')
-rwxr-xr-x | nixhome/Scripts/nix_garbage | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nixhome/Scripts/nix_garbage b/nixhome/Scripts/nix_garbage new file mode 100755 index 0000000..449e807 --- /dev/null +++ b/nixhome/Scripts/nix_garbage @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +set -x + +nix-env --delete-generations 10d +home-manager expire-generations "-10 days" +sudo nix-collect-garbage --delete-older-than 10d + |