diff --git a/modules/installer/tools/nixos-rebuild.sh b/modules/installer/tools/nixos-rebuild.sh index 6ed294ebf64..4d01ff53f89 100644 --- a/modules/installer/tools/nixos-rebuild.sh +++ b/modules/installer/tools/nixos-rebuild.sh @@ -23,6 +23,7 @@ The operation is one of the following: build-vm: build a virtual machine containing the configuration (useful for testing) dry-run: just show what store paths would be built/downloaded + pull: just pull the Nixpkgs channel manifest and exit Options: @@ -63,7 +64,7 @@ while test "$#" -gt 0; do --help) showSyntax ;; - switch|boot|test|build|dry-run|build-vm) + switch|boot|test|build|dry-run|build-vm|pull) action="$i" ;; --install-grub) @@ -142,6 +143,8 @@ if test -n "$pullManifest"; then done fi +if [ "$action" = pull ]; then exit 0; fi + # First build Nix, since NixOS may require a newer version than the # current one. Of course, the same goes for Nixpkgs, but Nixpkgs is