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