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