diff --git a/nixos/doc/manual/man-nixos-install.xml b/nixos/doc/manual/man-nixos-install.xml
index 06e7b4a9847..7ad1be1ec10 100644
--- a/nixos/doc/manual/man-nixos-install.xml
+++ b/nixos/doc/manual/man-nixos-install.xml
@@ -25,6 +25,22 @@
root
+
+
+
+
+
+ number
+
+
+
+ number
+
+
+
+ name
+ value
+
@@ -96,6 +112,37 @@ it.
+
+
+
+ Sets the maximum number of build jobs that Nix will
+ perform in parallel to the specified number. The default is 1.
+ A higher value is useful on SMP systems or to exploit I/O latency.
+
+
+
+
+
+
+ Sets the value of the NIX_BUILD_CORES
+ environment variable in the invocation of builders. Builders can
+ use this variable at their discretion to control the maximum amount
+ of parallelism. For instance, in Nixpkgs, if the derivation
+ attribute enableParallelBuilding is set to
+ true, the builder passes the
+ flag to GNU Make.
+ The value 0 means that the builder should use all
+ available CPU cores in the system.
+
+
+
+ namevalue
+
+ Set the Nix configuration option
+ name to value.
+
+
+
diff --git a/nixos/modules/installer/tools/nixos-install.sh b/nixos/modules/installer/tools/nixos-install.sh
index 8f3de10c613..1ccd6547df5 100644
--- a/nixos/modules/installer/tools/nixos-install.sh
+++ b/nixos/modules/installer/tools/nixos-install.sh
@@ -28,9 +28,14 @@ chrootCommand=(/run/current-system/sw/bin/bash)
while [ "$#" -gt 0 ]; do
i="$1"; shift 1
case "$i" in
- -I)
- given_path="$1"; shift 1
- extraBuildFlags+=("$i" "$given_path")
+ --max-jobs|-j|--cores|-I)
+ j="$1"; shift 1
+ extraBuildFlags+=("$i" "$j")
+ ;;
+ --option)
+ j="$1"; shift 1
+ k="$1"; shift 1
+ extraBuildFlags+=("$i" "$j" "$k")
;;
--root)
mountPoint="$1"; shift 1