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 '