diff --git a/bin/repair b/bin/repair new file mode 100755 index 0000000..a4c3d65 --- /dev/null +++ b/bin/repair @@ -0,0 +1,8 @@ +#!/bin/sh + + +while nix flake check --no-build |& grep "is not valid" >/tmp/invalid; do + path=$(cat /tmp/invalid | awk -F\' '{print $2}') + echo "Repairing $path" + sudo nix-store --repair-path $path >/dev/null +done