@@ -11,12 +11,29 @@
1111
1212<refnamediv>
1313 <refname><command>nixos-install</command></refname>
14− <refpurpose>install NixOS</refpurpose>
14+ <refpurpose>install bootloader and NixOS</refpurpose>
1515</refnamediv>
1616
1717<refsynopsisdiv>
1818 <cmdsynopsis>
1919 <command>nixos-install</command>
20+ <arg>
21+ <arg choice='plain'><option>-I</option></arg>
22+ <replaceable>path</replaceable>
23+ </arg>
24+ <arg>
25+ <arg choice='plain'><option>--root</option></arg>
26+ <replaceable>root</replaceable>
27+ </arg>
28+ <arg>
29+ <arg choice='plain'><option>--show-trace</option></arg>
30+ </arg>
31+ <arg>
32+ <arg choice='plain'><option>--chroot</option></arg>
33+ </arg>
34+ <arg>
35+ <arg choice='plain'><option>--help</option></arg>
36+ </arg>
2037 </cmdsynopsis>
2138</refsynopsisdiv>
2239
@@ -55,6 +72,56 @@ it.</para>
5572
5673</refsection>
5774
75+<refsection><title>Options</title>
76+
77+<para>This command accepts the following options:</para>
78+
79+<variablelist>
80+
81+ <varlistentry>
82+ <term><option>--root</option></term>
83+ <listitem>
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.
86+ </para>
87+ </listitem>
88+ </varlistentry>
89+
90+ <varlistentry>
91+ <term><option>-I</option></term>
92+ <listitem>
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>
96+ </listitem>
97+ </varlistentry>
98+
99+ <varlistentry>
100+ <term><option>--show-trace</option></term>
101+ <listitem>
102+ <para>Causes Nix to print out a stack trace in case of Nix expression evaluation errors.</para>
103+ </listitem>
104+ </varlistentry>
105+
106+ <varlistentry>
107+ <term><option>--chroot</option></term>
108+ <listitem>
109+ <para>Chroot into given installation. Any additional arguments passed are going to be executed inside the chroot.
110+ </para>
111+ </listitem>
112+ </varlistentry>
113+
114+ <varlistentry>
115+ <term><option>--help</option></term>
116+ <listitem>
117+ <para>Synonym for <command>man nixos-install</command>.</para>
118+ </listitem>
119+ </varlistentry>
120+
121+</variablelist>
122+
123+</refsection>
124+
58125
59126<refsection><title>Examples</title>
60127
@@ -72,6 +139,7 @@ $ mount /dev/sda1 /mnt
72139$ nixos-generate-config --root /mnt
73140$ # edit /mnt/etc/nixos/configuration.nix
74141$ nixos-install
142+$ reboot
75143</screen>
76144
77145</para>