···77 <refmiscinfo class="source">NixOS</refmiscinfo>
88<!-- <refmiscinfo class="version"><xi:include href="version.txt" parse="text"/></refmiscinfo> -->
99 </refmeta>
1010+1011 <refnamediv>
1112 <refname><command>nixos-rebuild</command>
1213 </refname><refpurpose>reconfigure a NixOS machine</refpurpose>
1314 </refnamediv>
1515+1416 <refsynopsisdiv>
1517 <cmdsynopsis>
1618 <command>nixos-rebuild</command><group choice='req'>
···7476 <arg>
7577 <option>--builders</option> <replaceable>builder-spec</replaceable>
7678 </arg>
7979+7780 <sbr />
7881 <arg>
7982 <group choice='req'>
···121124 </arg>
122125 </cmdsynopsis>
123126 </refsynopsisdiv>
127127+124128 <refsection>
125129 <title>Description</title>
130130+126131 <para>
127132 This command updates the system so that it corresponds to the configuration
128133 specified in <filename>/etc/nixos/configuration.nix</filename>. Thus, every
···133138 (re)starts any system services if needed. Please note that user services need
134139 to be started manually as they aren't detected by the activation script at the moment.
135140 </para>
141141+136142 <para>
137143 This command has one required argument, which specifies the desired
138144 operation. It must be one of the following:
145145+139146 <variablelist>
140147 <varlistentry>
141148 <term>
···152159 </para>
153160 </listitem>
154161 </varlistentry>
162162+155163 <varlistentry>
156164 <term>
157165 <option>boot</option>
···165173 </para>
166174 </listitem>
167175 </varlistentry>
176176+168177 <varlistentry>
169178 <term>
170179 <option>test</option>
···179188 </para>
180189 </listitem>
181190 </varlistentry>
191191+182192 <varlistentry>
183193 <term>
184194 <option>build</option>
···197207 </para>
198208 </listitem>
199209 </varlistentry>
210210+200211 <varlistentry>
201212 <term>
202213 <option>dry-build</option>
···208219 </para>
209220 </listitem>
210221 </varlistentry>
222222+211223 <varlistentry>
212224 <term>
213225 <option>dry-activate</option>
···222234 </para>
223235 </listitem>
224236 </varlistentry>
237237+225238 <varlistentry>
226239 <term>
227240 <option>edit</option>
···232245 </para>
233246 </listitem>
234247 </varlistentry>
248248+235249 <varlistentry>
236250 <term>
237251 <option>build-vm</option>
···249263<prompt>$ </prompt>./result/bin/run-*-vm
250264</screen>
251265 </para>
266266+252267 <para>
253268 The VM is implemented using the <literal>qemu</literal> package. For
254269 best performance, you should load the <literal>kvm-intel</literal> or
255270 <literal>kvm-amd</literal> kernel modules to get hardware
256271 virtualisation.
257272 </para>
273273+258274 <para>
259275 The VM mounts the Nix store of the host through the 9P file system. The
260276 host Nix store is read-only, so Nix commands that modify the Nix store
···262278 <command>nixos-rebuild</command>; to change the VM’s configuration,
263279 you must halt the VM and re-run the commands above.
264280 </para>
281281+265282 <para>
266283 The VM has its own <literal>ext3</literal> root file system, which is
267284 automatically created when the VM is first started, and is persistent
···272289 </para>
273290 </listitem>
274291 </varlistentry>
292292+275293 <varlistentry>
276294 <term>
277295 <option>build-vm-with-bootloader</option>
···294312 </variablelist>
295313 </para>
296314 </refsection>
315315+297316 <refsection>
298317 <title>Options</title>
299318 <para>
300319 This command accepts the following options:
301320 </para>
321321+302322 <variablelist>
303323 <varlistentry>
304324 <term>
···310330 </para>
311331 </listitem>
312332 </varlistentry>
333333+313334 <varlistentry>
314335 <term>
315336 <option>--install-bootloader</option>
···321342 </para>
322343 </listitem>
323344 </varlistentry>
345345+324346 <varlistentry>
325347 <term>
326348 <option>--no-build-nix</option>
···336358 </para>
337359 </listitem>
338360 </varlistentry>
361361+339362 <varlistentry>
340363 <term>
341364 <option>--fast</option>
···349372 </para>
350373 </listitem>
351374 </varlistentry>
375375+352376 <varlistentry>
353377 <term>
354378 <option>--rollback</option>
···363387 </para>
364388 </listitem>
365389 </varlistentry>
390390+366391 <varlistentry>
367392 <term>
368393 <option>--builders</option> <replaceable>builder-spec</replaceable>
···382407 </para>
383408 </listitem>
384409 </varlistentry>
410410+385411 <varlistentry>
386412 <term>
387413 <option>--profile-name</option>
···412438 </para>
413439 </listitem>
414440 </varlistentry>
441441+415442 <varlistentry>
416443 <term>
417444 <option>--build-host</option>
···437464 </para>
438465 </listitem>
439466 </varlistentry>
467467+440468 <varlistentry>
441469 <term>
442470 <option>--target-host</option>
···449477 be accessible over ssh, and for the commands <option>switch</option>,
450478 <option>boot</option> and <option>test</option> you need root access.
451479 </para>
480480+452481 <para>
453482 If <option>--build-host</option> is not explicitly specified,
454483 <option>--build-host</option> will implicitly be set to the same value as
···457486 place remotely (and no build artifacts will be copied to the local
458487 machine).
459488 </para>
489489+460490 <para>
461491 You can include a remote user name in the host name
462492 (<replaceable>user@host</replaceable>). You can also set ssh options by
···465495 </listitem>
466496 </varlistentry>
467497 </variablelist>
498498+468499 <para>
469500 In addition, <command>nixos-rebuild</command> accepts various Nix-related
470501 flags, including <option>--max-jobs</option> / <option>-j</option>,
···473504 <option>-v</option>. See the Nix manual for details.
474505 </para>
475506 </refsection>
507507+476508 <refsection>
477509 <title>Environment</title>
510510+478511 <variablelist>
479512 <varlistentry>
480513 <term>
···487520 </para>
488521 </listitem>
489522 </varlistentry>
523523+490524 <varlistentry>
491525 <term>
492526 <envar>NIX_SSHOPTS</envar>
···500534 </varlistentry>
501535 </variablelist>
502536 </refsection>
537537+503538 <refsection>
504539 <title>Files</title>
540540+505541 <variablelist>
542542+506543 <varlistentry>
507544 <term>
508545 <filename>/run/current-system</filename>
···513550 </para>
514551 </listitem>
515552 </varlistentry>
553553+516554 <varlistentry>
517555 <term>
518556 <filename>/nix/var/nix/profiles/system</filename>
···524562 </para>
525563 </listitem>
526564 </varlistentry>
565565+527566 </variablelist>
528567 </refsection>
568568+529569 <refsection>
530570 <title>Bugs</title>
531571 <para>