liminix/pkgs/min-collect-garbage/min-collect-garbage.sh

4 lines
128 B
Bash
Raw Normal View History

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