From 95d41d5e279ba0597262403ef73443bd4799cf54 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 13 Mar 2008 10:17:42 +0000 Subject: [PATCH] * Allow the location of Nixpkgs to be specified through $NIXPKGS. * $NIXOS_NO_PULL: changed to $NIXOS_PULL (which should be set to "0" to disable pulling). * New variable $NIXOS_BUILD_NIX, which can be set to "0" to disable building nixUnstable from Nixpkgs. svn path=/nixos/trunk/; revision=11096 --- installer/nixos-rebuild.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/installer/nixos-rebuild.sh b/installer/nixos-rebuild.sh index 6a3b3a40050..c1df6e5613c 100644 --- a/installer/nixos-rebuild.sh +++ b/installer/nixos-rebuild.sh @@ -24,13 +24,14 @@ if test -z "$action"; then showSyntax; fi # Allow the location of NixOS sources and the system configuration # file to be overridden. -if test -z "$NIXOS"; then NIXOS=/etc/nixos/nixos; fi -if test -z "$NIXOS_CONFIG"; then NIXOS_CONFIG=/etc/nixos/configuration.nix; fi +NIXOS=${NIXOS:-/etc/nixos/nixos} +NIXPKGS=${NIXPKG:-/etc/nixos/nixpkgs} +NIXOS_CONFIG=${NIXOS_CONFIG:-/etc/nixos/configuration.nix} # Pull the manifests defined in the configuration (the "manifests" # attribute). Wonderfully hacky. -if test -z "$NIXOS_NO_PULL"; then +if test "${NIXOS_PULL:-1}" != 0; then manifests=$(nix-instantiate --eval-only --xml --strict $NIXOS -A manifests \ | grep '