diff --git a/doc/config-examples/svn-server.nix b/doc/config-examples/svn-server.nix index 7f2dafe16ad..a3c3b46cf24 100644 --- a/doc/config-examples/svn-server.nix +++ b/doc/config-examples/svn-server.nix @@ -17,6 +17,7 @@ httpd = { enable = true; + experimental = true; adminAddr = "admin@example.org"; subservices = { diff --git a/test/test-config-examples.sh b/test/test-config-examples.sh new file mode 100755 index 00000000000..1ba2f841c41 --- /dev/null +++ b/test/test-config-examples.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +# This script try to evaluate all configurations which are stored in +# doc/config-examples. This script is useful to ensure that examples are +# working with the current system. + +pwd=$(pwd) +set -xe +for i in ../doc/config-examples/*.nix; do + NIXOS_CONFIG="$pwd/$i" nix-instantiate \ + --eval-only --xml --strict > /dev/null 2>&1 \ + ../default.nix -A system +done +set +xe