1#!/bin/sh
2
3# This script try to evaluate all configurations which are stored in
4# doc/config-examples. This script is useful to ensure that examples are
5# working with the current system.
6
7pwd=$(pwd)
8set -xe
9for i in ../doc/config-examples/*.nix; do
10 NIXOS_CONFIG="$pwd/$i" nix-instantiate \
11 --eval-only --xml --strict > /dev/null 2>&1 \
12 ../default.nix -A system
13done
14set +xe