man-nixos-rebuild.xml: Improve layout
This commit is contained in:
parent
e795af387c
commit
054f01ee1b
@ -7,10 +7,12 @@
|
|||||||
<refmiscinfo class="source">NixOS</refmiscinfo>
|
<refmiscinfo class="source">NixOS</refmiscinfo>
|
||||||
<!-- <refmiscinfo class="version"><xi:include href="version.txt" parse="text"/></refmiscinfo> -->
|
<!-- <refmiscinfo class="version"><xi:include href="version.txt" parse="text"/></refmiscinfo> -->
|
||||||
</refmeta>
|
</refmeta>
|
||||||
|
|
||||||
<refnamediv>
|
<refnamediv>
|
||||||
<refname><command>nixos-rebuild</command>
|
<refname><command>nixos-rebuild</command>
|
||||||
</refname><refpurpose>reconfigure a NixOS machine</refpurpose>
|
</refname><refpurpose>reconfigure a NixOS machine</refpurpose>
|
||||||
</refnamediv>
|
</refnamediv>
|
||||||
|
|
||||||
<refsynopsisdiv>
|
<refsynopsisdiv>
|
||||||
<cmdsynopsis>
|
<cmdsynopsis>
|
||||||
<command>nixos-rebuild</command><group choice='req'>
|
<command>nixos-rebuild</command><group choice='req'>
|
||||||
@ -74,6 +76,7 @@
|
|||||||
<arg>
|
<arg>
|
||||||
<option>--builders</option> <replaceable>builder-spec</replaceable>
|
<option>--builders</option> <replaceable>builder-spec</replaceable>
|
||||||
</arg>
|
</arg>
|
||||||
|
|
||||||
<sbr />
|
<sbr />
|
||||||
<arg>
|
<arg>
|
||||||
<group choice='req'>
|
<group choice='req'>
|
||||||
@ -121,8 +124,10 @@
|
|||||||
</arg>
|
</arg>
|
||||||
</cmdsynopsis>
|
</cmdsynopsis>
|
||||||
</refsynopsisdiv>
|
</refsynopsisdiv>
|
||||||
|
|
||||||
<refsection>
|
<refsection>
|
||||||
<title>Description</title>
|
<title>Description</title>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
This command updates the system so that it corresponds to the configuration
|
This command updates the system so that it corresponds to the configuration
|
||||||
specified in <filename>/etc/nixos/configuration.nix</filename>. Thus, every
|
specified in <filename>/etc/nixos/configuration.nix</filename>. Thus, every
|
||||||
@ -133,9 +138,11 @@
|
|||||||
(re)starts any system services if needed. Please note that user services need
|
(re)starts any system services if needed. Please note that user services need
|
||||||
to be started manually as they aren't detected by the activation script at the moment.
|
to be started manually as they aren't detected by the activation script at the moment.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
This command has one required argument, which specifies the desired
|
This command has one required argument, which specifies the desired
|
||||||
operation. It must be one of the following:
|
operation. It must be one of the following:
|
||||||
|
|
||||||
<variablelist>
|
<variablelist>
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
@ -152,6 +159,7 @@
|
|||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
<option>boot</option>
|
<option>boot</option>
|
||||||
@ -165,6 +173,7 @@
|
|||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
<option>test</option>
|
<option>test</option>
|
||||||
@ -179,6 +188,7 @@
|
|||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
<option>build</option>
|
<option>build</option>
|
||||||
@ -197,6 +207,7 @@
|
|||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
<option>dry-build</option>
|
<option>dry-build</option>
|
||||||
@ -208,6 +219,7 @@
|
|||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
<option>dry-activate</option>
|
<option>dry-activate</option>
|
||||||
@ -222,6 +234,7 @@
|
|||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
<option>edit</option>
|
<option>edit</option>
|
||||||
@ -232,6 +245,7 @@
|
|||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
<option>build-vm</option>
|
<option>build-vm</option>
|
||||||
@ -249,12 +263,14 @@
|
|||||||
<prompt>$ </prompt>./result/bin/run-*-vm
|
<prompt>$ </prompt>./result/bin/run-*-vm
|
||||||
</screen>
|
</screen>
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
The VM is implemented using the <literal>qemu</literal> package. For
|
The VM is implemented using the <literal>qemu</literal> package. For
|
||||||
best performance, you should load the <literal>kvm-intel</literal> or
|
best performance, you should load the <literal>kvm-intel</literal> or
|
||||||
<literal>kvm-amd</literal> kernel modules to get hardware
|
<literal>kvm-amd</literal> kernel modules to get hardware
|
||||||
virtualisation.
|
virtualisation.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
The VM mounts the Nix store of the host through the 9P file system. The
|
The VM mounts the Nix store of the host through the 9P file system. The
|
||||||
host Nix store is read-only, so Nix commands that modify the Nix store
|
host Nix store is read-only, so Nix commands that modify the Nix store
|
||||||
@ -262,6 +278,7 @@
|
|||||||
<command>nixos-rebuild</command>; to change the VM’s configuration,
|
<command>nixos-rebuild</command>; to change the VM’s configuration,
|
||||||
you must halt the VM and re-run the commands above.
|
you must halt the VM and re-run the commands above.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
The VM has its own <literal>ext3</literal> root file system, which is
|
The VM has its own <literal>ext3</literal> root file system, which is
|
||||||
automatically created when the VM is first started, and is persistent
|
automatically created when the VM is first started, and is persistent
|
||||||
@ -272,6 +289,7 @@
|
|||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
<option>build-vm-with-bootloader</option>
|
<option>build-vm-with-bootloader</option>
|
||||||
@ -294,11 +312,13 @@
|
|||||||
</variablelist>
|
</variablelist>
|
||||||
</para>
|
</para>
|
||||||
</refsection>
|
</refsection>
|
||||||
|
|
||||||
<refsection>
|
<refsection>
|
||||||
<title>Options</title>
|
<title>Options</title>
|
||||||
<para>
|
<para>
|
||||||
This command accepts the following options:
|
This command accepts the following options:
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<variablelist>
|
<variablelist>
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
@ -310,6 +330,7 @@
|
|||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
<option>--install-bootloader</option>
|
<option>--install-bootloader</option>
|
||||||
@ -321,6 +342,7 @@
|
|||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
<option>--no-build-nix</option>
|
<option>--no-build-nix</option>
|
||||||
@ -336,6 +358,7 @@
|
|||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
<option>--fast</option>
|
<option>--fast</option>
|
||||||
@ -349,6 +372,7 @@
|
|||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
<option>--rollback</option>
|
<option>--rollback</option>
|
||||||
@ -363,6 +387,7 @@
|
|||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
<option>--builders</option> <replaceable>builder-spec</replaceable>
|
<option>--builders</option> <replaceable>builder-spec</replaceable>
|
||||||
@ -382,6 +407,7 @@
|
|||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
<option>--profile-name</option>
|
<option>--profile-name</option>
|
||||||
@ -412,6 +438,7 @@
|
|||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
<option>--build-host</option>
|
<option>--build-host</option>
|
||||||
@ -437,6 +464,7 @@
|
|||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
<option>--target-host</option>
|
<option>--target-host</option>
|
||||||
@ -449,6 +477,7 @@
|
|||||||
be accessible over ssh, and for the commands <option>switch</option>,
|
be accessible over ssh, and for the commands <option>switch</option>,
|
||||||
<option>boot</option> and <option>test</option> you need root access.
|
<option>boot</option> and <option>test</option> you need root access.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
If <option>--build-host</option> is not explicitly specified,
|
If <option>--build-host</option> is not explicitly specified,
|
||||||
<option>--build-host</option> will implicitly be set to the same value as
|
<option>--build-host</option> will implicitly be set to the same value as
|
||||||
@ -457,6 +486,7 @@
|
|||||||
place remotely (and no build artifacts will be copied to the local
|
place remotely (and no build artifacts will be copied to the local
|
||||||
machine).
|
machine).
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
You can include a remote user name in the host name
|
You can include a remote user name in the host name
|
||||||
(<replaceable>user@host</replaceable>). You can also set ssh options by
|
(<replaceable>user@host</replaceable>). You can also set ssh options by
|
||||||
@ -465,6 +495,7 @@
|
|||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
</variablelist>
|
</variablelist>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
In addition, <command>nixos-rebuild</command> accepts various Nix-related
|
In addition, <command>nixos-rebuild</command> accepts various Nix-related
|
||||||
flags, including <option>--max-jobs</option> / <option>-j</option>,
|
flags, including <option>--max-jobs</option> / <option>-j</option>,
|
||||||
@ -473,8 +504,10 @@
|
|||||||
<option>-v</option>. See the Nix manual for details.
|
<option>-v</option>. See the Nix manual for details.
|
||||||
</para>
|
</para>
|
||||||
</refsection>
|
</refsection>
|
||||||
|
|
||||||
<refsection>
|
<refsection>
|
||||||
<title>Environment</title>
|
<title>Environment</title>
|
||||||
|
|
||||||
<variablelist>
|
<variablelist>
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
@ -487,6 +520,7 @@
|
|||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
<envar>NIX_SSHOPTS</envar>
|
<envar>NIX_SSHOPTS</envar>
|
||||||
@ -500,9 +534,12 @@
|
|||||||
</varlistentry>
|
</varlistentry>
|
||||||
</variablelist>
|
</variablelist>
|
||||||
</refsection>
|
</refsection>
|
||||||
|
|
||||||
<refsection>
|
<refsection>
|
||||||
<title>Files</title>
|
<title>Files</title>
|
||||||
|
|
||||||
<variablelist>
|
<variablelist>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
<filename>/run/current-system</filename>
|
<filename>/run/current-system</filename>
|
||||||
@ -513,6 +550,7 @@
|
|||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
<filename>/nix/var/nix/profiles/system</filename>
|
<filename>/nix/var/nix/profiles/system</filename>
|
||||||
@ -524,8 +562,10 @@
|
|||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
</variablelist>
|
</variablelist>
|
||||||
</refsection>
|
</refsection>
|
||||||
|
|
||||||
<refsection>
|
<refsection>
|
||||||
<title>Bugs</title>
|
<title>Bugs</title>
|
||||||
<para>
|
<para>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user