2006-12-12 01:08:26 +01:00
|
|
|
#! /bin/sh -e
|
2007-01-17 13:06:26 +01:00
|
|
|
|
|
|
|
if test -z "$NIXOS"; then NIXOS=/etc/nixos/nixos; fi
|
|
|
|
if test -z "$NIXOS_CONFIG"; then NIXOS_CONFIG=/etc/nixos/configuration.nix; fi
|
|
|
|
|
|
|
|
nix-build $NIXOS/system/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
|