nixos-hardware/tests/eval-test.sh

19 lines
286 B
Bash
Raw Normal View History

2017-12-24 11:44:48 +00:00
#!/bin/sh
cd $(dirname $0)/..
2017-12-24 11:44:48 +00:00
2017-12-24 17:21:43 +00:00
find=(find . -name default.nix)
for profile in `${find[@]}`; do
echo evaluating $profile >&2
nixos-rebuild \
-I nixos-config=tests/eval-test.nix \
-I nixos-hardware-profile=$profile \
dry-build
if [ $? -ne 0 ]; then
exit 1
fi
2017-12-24 11:44:48 +00:00
done