* Refactoring.

svn path=/nixos/trunk/; revision=7533
This commit is contained in:
Eelco Dolstra 2007-01-04 10:29:40 +00:00
parent acacfda1b2
commit b6b5bafa22
24 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
if test -z "$NIXOS_CONFIG"; then
NIXOS_CONFIG=/etc/nixos/configuration.nix
fi
nix-build configuration/system.nix \
nix-build system/system.nix \
--arg configuration "import $NIXOS_CONFIG" \
-A system -K -k
./result/bin/switch-to-configuration test

View File

@ -2,7 +2,7 @@
if test -z "$NIXOS_CONFIG"; then
NIXOS_CONFIG=/etc/nixos/configuration.nix
fi
nix-env -p /nix/var/nix/profiles/system -f configuration/system.nix \
nix-env -p /nix/var/nix/profiles/system -f system/system.nix \
--arg configuration "import $NIXOS_CONFIG" \
--set -A system
/nix/var/nix/profiles/system/bin/switch-to-configuration switch