* Refactoring.
svn path=/nixos/trunk/; revision=7533
This commit is contained in:
parent
acacfda1b2
commit
b6b5bafa22
2
test.sh
2
test.sh
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user