···
<refname><command>nixos-install</command></refname>
+
<refpurpose>install bootloader and NixOS</refpurpose>
<command>nixos-install</command>
+
<arg choice='plain'><option>-I</option></arg>
+
<replaceable>path</replaceable>
+
<arg choice='plain'><option>--root</option></arg>
+
<replaceable>root</replaceable>
+
<arg choice='plain'><option>--show-trace</option></arg>
+
<arg choice='plain'><option>--chroot</option></arg>
+
<arg choice='plain'><option>--help</option></arg>
···
+
<refsection><title>Options</title>
+
<para>This command accepts the following options:</para>
+
<term><option>--root</option></term>
+
<para>Defaults to <filename>/mnt</filename>. If this option is given, treat the directory
+
<replaceable>root</replaceable> as the root of the NixOS installation.
+
<term><option>-I</option></term>
+
<para>Add a path to the Nix expression search path. This option may be given multiple times.
+
See the NIX_PATH environment variable for information on the semantics of the Nix search path.
+
Paths added through <replaceable>-I</replaceable> take precedence over NIX_PATH.</para>
+
<term><option>--show-trace</option></term>
+
<para>Causes Nix to print out a stack trace in case of Nix expression evaluation errors.</para>
+
<term><option>--chroot</option></term>
+
<para>Chroot into given installation. Any additional arguments passed are going to be executed inside the chroot.
+
<term><option>--help</option></term>
+
<para>Synonym for <command>man nixos-install</command>.</para>
<refsection><title>Examples</title>
···
$ nixos-generate-config --root /mnt
$ # edit /mnt/etc/nixos/configuration.nix