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