From ad22e587ab9901f978b31d1f84e239c7b40e7d65 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 15 Aug 2007 12:01:20 +0000 Subject: [PATCH] * nixos-rebuild: do a nix-pull on the Nixpkgs channel manifest. I.e., you don't need to be subscribed to the Nixpkgs channel to get binary downloads. This is possible because nix-pull is now pretty fast. svn path=/nixos/trunk/; revision=9133 --- installer/nixos-rebuild.sh | 13 +++++++++++++ system/options.nix | 14 ++++++++++++++ system/system.nix | 2 ++ upstart-jobs/ifplugd.nix | 1 + 4 files changed, 30 insertions(+) diff --git a/installer/nixos-rebuild.sh b/installer/nixos-rebuild.sh index 0552c9baaf0..33639daa568 100644 --- a/installer/nixos-rebuild.sh +++ b/installer/nixos-rebuild.sh @@ -28,6 +28,19 @@ if test -z "$NIXOS"; then NIXOS=/etc/nixos/nixos; fi if test -z "$NIXOS_CONFIG"; then NIXOS_CONFIG=/etc/nixos/configuration.nix; fi +# Pull the manifests defined in the configuration (the "manifests" +# attribute). Wonderfully hacky. +manifests=$(nix-instantiate --eval-only --xml --strict \ + $NIXOS/system/system.nix \ + --arg configuration "import $NIXOS_CONFIG" \ + -A manifests \ + | grep '