From f8e36664a69a998c2a5b71840a068783cbc3b8fd Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 18 Apr 2012 15:01:42 +0000 Subject: [PATCH] =?UTF-8?q?*=20Subtle:=20since=20nix-env=20processes=20fla?= =?UTF-8?q?gs=20in=20order,=20any=20=E2=80=98-I=E2=80=99=20flag=20should?= =?UTF-8?q?=20=20=20come=20before=20=E2=80=98-f=20=E2=80=99.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit svn path=/nixos/trunk/; revision=33831 --- modules/installer/tools/nixos-rebuild.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/installer/tools/nixos-rebuild.sh b/modules/installer/tools/nixos-rebuild.sh index 42e1a33a4446..b62da16c7b7f 100644 --- a/modules/installer/tools/nixos-rebuild.sh +++ b/modules/installer/tools/nixos-rebuild.sh @@ -152,7 +152,7 @@ fi if test -z "$rollback"; then echo "building the system configuration..." >&2 if test "$action" = switch -o "$action" = boot; then - nix-env -p /nix/var/nix/profiles/system -f '' --set -A system $extraBuildFlags + nix-env $extraBuildFlags -p /nix/var/nix/profiles/system -f '' --set -A system pathToConfig=/nix/var/nix/profiles/system elif test "$action" = test -o "$action" = build -o "$action" = dry-run; then nix-build '' -A system -K -k $extraBuildFlags > /dev/null