move min-list-garbage into min-collect-garbage pkg

we don't want it in the same package as min-copy-closure as
that depends on bash
This commit is contained in:
Daniel Barlow
2023-05-20 21:09:22 +01:00
parent 68ab6faeb3
commit b0098f1c8e
5 changed files with 21 additions and 3 deletions

View File

@@ -0,0 +1,3 @@
#!/bin/sh
test -f /persist/nix-store-paths || exit 1
(cd /nix/store && min-list-garbage /persist/nix-store-paths | xargs rm -r)