nixos-hardware/tests/eval.sh

17 lines
287 B
Bash
Raw Normal View History

2017-12-24 06:44:48 -05:00
#!/bin/sh
2017-12-25 12:23:16 -05:00
set -e
2017-12-24 06:44:48 -05:00
2017-12-25 12:23:16 -05:00
cd "$(dirname "$0")/.."
2017-12-25 12:23:16 -05:00
for profile in $(find . -name default.nix); do
echo evaluating $profile >&2
2017-12-25 12:23:16 -05:00
nix-build '<nixpkgs/nixos>' \
-I nixos-config=tests/eval.nix \
2017-12-25 12:23:16 -05:00
-I nixos-hardware-profile=$profile \
-A system \
--dry-run \
--show-trace
2017-12-24 06:44:48 -05:00
done