2006-12-12 00:08:26 +00:00
|
|
|
#! /bin/sh -e
|
|
|
|
if test -z "$NIXOS_CONFIG"; then
|
|
|
|
NIXOS_CONFIG=/etc/nixos/configuration.nix
|
|
|
|
fi
|
2006-12-11 17:36:57 +00:00
|
|
|
nix-build configuration/system.nix \
|
2006-12-12 00:08:26 +00:00
|
|
|
--arg configuration "import $NIXOS_CONFIG" \
|
2006-12-11 17:36:57 +00:00
|
|
|
-A system -K -k
|
2006-12-11 01:03:26 +00:00
|
|
|
./result/bin/switch-to-configuration test
|