git.iko.soy/typeable/nixpkgs
on master help sign in
man-nixos-rebuild.xml: Improve layout
commit054f01ee1ba7ea86f8442b7dcc9d99b8aece5427 authorEelco Dolstra <edolstra@gmail.com> dateFri 13 Sep 2019, 17:27 (7 years ago) parente795af3
1 file changed+40
nixos/doc/manual/man-nixos-rebuild.xml+40
nixos/doc/manual/man-nixos-rebuild.xml+40
@@ -7,10 +7,12 @@
77 <refmiscinfo class="source">NixOS</refmiscinfo>
88<!-- <refmiscinfo class="version"><xi:include href="version.txt" parse="text"/></refmiscinfo> -->
99 </refmeta>
10+
1011 <refnamediv>
1112 <refname><command>nixos-rebuild</command>
1213 </refname><refpurpose>reconfigure a NixOS machine</refpurpose>
1314 </refnamediv>
15+
1416 <refsynopsisdiv>
1517 <cmdsynopsis>
1618 <command>nixos-rebuild</command><group choice='req'>
@@ -74,6 +76,7 @@
7476 <arg>
7577 <option>--builders</option> <replaceable>builder-spec</replaceable>
7678 </arg>
79+
7780 <sbr />
7881 <arg>
7982 <group choice='req'>
@@ -121,8 +124,10 @@
121124 </arg>
122125 </cmdsynopsis>
123126 </refsynopsisdiv>
127+
124128 <refsection>
125129 <title>Description</title>
130+
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
@@ -133,9 +138,11 @@
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>
141+
136142 <para>
137143 This command has one required argument, which specifies the desired
138144 operation. It must be one of the following:
145+
139146 <variablelist>
140147 <varlistentry>
141148 <term>
@@ -152,6 +159,7 @@
152159 </para>
153160 </listitem>
154161 </varlistentry>
162+
155163 <varlistentry>
156164 <term>
157165 <option>boot</option>
@@ -165,6 +173,7 @@
165173 </para>
166174 </listitem>
167175 </varlistentry>
176+
168177 <varlistentry>
169178 <term>
170179 <option>test</option>
@@ -179,6 +188,7 @@
179188 </para>
180189 </listitem>
181190 </varlistentry>
191+
182192 <varlistentry>
183193 <term>
184194 <option>build</option>
@@ -197,6 +207,7 @@
197207 </para>
198208 </listitem>
199209 </varlistentry>
210+
200211 <varlistentry>
201212 <term>
202213 <option>dry-build</option>
@@ -208,6 +219,7 @@
208219 </para>
209220 </listitem>
210221 </varlistentry>
222+
211223 <varlistentry>
212224 <term>
213225 <option>dry-activate</option>
@@ -222,6 +234,7 @@
222234 </para>
223235 </listitem>
224236 </varlistentry>
237+
225238 <varlistentry>
226239 <term>
227240 <option>edit</option>
@@ -232,6 +245,7 @@
232245 </para>
233246 </listitem>
234247 </varlistentry>
248+
235249 <varlistentry>
236250 <term>
237251 <option>build-vm</option>
@@ -249,12 +263,14 @@
249263<prompt>$ </prompt>./result/bin/run-*-vm
250264</screen>
251265 </para>
266+
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>
273+
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
@@ -262,6 +278,7 @@
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>
281+
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
@@ -272,6 +289,7 @@
272289 </para>
273290 </listitem>
274291 </varlistentry>
292+
275293 <varlistentry>
276294 <term>
277295 <option>build-vm-with-bootloader</option>
@@ -294,11 +312,13 @@
294312 </variablelist>
295313 </para>
296314 </refsection>
315+
297316 <refsection>
298317 <title>Options</title>
299318 <para>
300319 This command accepts the following options:
301320 </para>
321+
302322 <variablelist>
303323 <varlistentry>
304324 <term>
@@ -310,6 +330,7 @@
310330 </para>
311331 </listitem>
312332 </varlistentry>
333+
313334 <varlistentry>
314335 <term>
315336 <option>--install-bootloader</option>
@@ -321,6 +342,7 @@
321342 </para>
322343 </listitem>
323344 </varlistentry>
345+
324346 <varlistentry>
325347 <term>
326348 <option>--no-build-nix</option>
@@ -336,6 +358,7 @@
336358 </para>
337359 </listitem>
338360 </varlistentry>
361+
339362 <varlistentry>
340363 <term>
341364 <option>--fast</option>
@@ -349,6 +372,7 @@
349372 </para>
350373 </listitem>
351374 </varlistentry>
375+
352376 <varlistentry>
353377 <term>
354378 <option>--rollback</option>
@@ -363,6 +387,7 @@
363387 </para>
364388 </listitem>
365389 </varlistentry>
390+
366391 <varlistentry>
367392 <term>
368393 <option>--builders</option> <replaceable>builder-spec</replaceable>
@@ -382,6 +407,7 @@
382407 </para>
383408 </listitem>
384409 </varlistentry>
410+
385411 <varlistentry>
386412 <term>
387413 <option>--profile-name</option>
@@ -412,6 +438,7 @@
412438 </para>
413439 </listitem>
414440 </varlistentry>
441+
415442 <varlistentry>
416443 <term>
417444 <option>--build-host</option>
@@ -437,6 +464,7 @@
437464 </para>
438465 </listitem>
439466 </varlistentry>
467+
440468 <varlistentry>
441469 <term>
442470 <option>--target-host</option>
@@ -449,6 +477,7 @@
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>
480+
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
@@ -457,6 +486,7 @@
457486 place remotely (and no build artifacts will be copied to the local
458487 machine).
459488 </para>
489+
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
@@ -465,6 +495,7 @@
465495 </listitem>
466496 </varlistentry>
467497 </variablelist>
498+
468499 <para>
469500 In addition, <command>nixos-rebuild</command> accepts various Nix-related
470501 flags, including <option>--max-jobs</option> / <option>-j</option>,
@@ -473,8 +504,10 @@
473504 <option>-v</option>. See the Nix manual for details.
474505 </para>
475506 </refsection>
507+
476508 <refsection>
477509 <title>Environment</title>
510+
478511 <variablelist>
479512 <varlistentry>
480513 <term>
@@ -487,6 +520,7 @@
487520 </para>
488521 </listitem>
489522 </varlistentry>
523+
490524 <varlistentry>
491525 <term>
492526 <envar>NIX_SSHOPTS</envar>
@@ -500,9 +534,12 @@
500534 </varlistentry>
501535 </variablelist>
502536 </refsection>
537+
503538 <refsection>
504539 <title>Files</title>
540+
505541 <variablelist>
542+
506543 <varlistentry>
507544 <term>
508545 <filename>/run/current-system</filename>
@@ -513,6 +550,7 @@
513550 </para>
514551 </listitem>
515552 </varlistentry>
553+
516554 <varlistentry>
517555 <term>
518556 <filename>/nix/var/nix/profiles/system</filename>
@@ -524,8 +562,10 @@
524562 </para>
525563 </listitem>
526564 </varlistentry>
565+
527566 </variablelist>
528567 </refsection>
568+
529569 <refsection>
530570 <title>Bugs</title>
531571 <para>