mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
* Refactoring.
svn path=/nixos/trunk/; revision=7533
This commit is contained in:
parent
acacfda1b2
commit
b6b5bafa22
24 changed files with 2 additions and 2 deletions
2
test.sh
2
test.sh
|
@ -2,7 +2,7 @@
|
||||||
if test -z "$NIXOS_CONFIG"; then
|
if test -z "$NIXOS_CONFIG"; then
|
||||||
NIXOS_CONFIG=/etc/nixos/configuration.nix
|
NIXOS_CONFIG=/etc/nixos/configuration.nix
|
||||||
fi
|
fi
|
||||||
nix-build configuration/system.nix \
|
nix-build system/system.nix \
|
||||||
--arg configuration "import $NIXOS_CONFIG" \
|
--arg configuration "import $NIXOS_CONFIG" \
|
||||||
-A system -K -k
|
-A system -K -k
|
||||||
./result/bin/switch-to-configuration test
|
./result/bin/switch-to-configuration test
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
if test -z "$NIXOS_CONFIG"; then
|
if test -z "$NIXOS_CONFIG"; then
|
||||||
NIXOS_CONFIG=/etc/nixos/configuration.nix
|
NIXOS_CONFIG=/etc/nixos/configuration.nix
|
||||||
fi
|
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" \
|
--arg configuration "import $NIXOS_CONFIG" \
|
||||||
--set -A system
|
--set -A system
|
||||||
/nix/var/nix/profiles/system/bin/switch-to-configuration switch
|
/nix/var/nix/profiles/system/bin/switch-to-configuration switch
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue