about summary refs log tree commit diff
path: root/nixos/doc
diff options
context:
space:
mode:
authorDaniel Frank <git@danielfrank.net>2019-10-12 22:23:53 +0200
committerDaniel Frank <git@danielfrank.net>2020-02-08 11:44:59 +0100
commit73220589e08d1916555431eecebf9892501d1db7 (patch)
treef11d4130849f19ee0f748f0d2ce9f6762df6483c /nixos/doc
parent2de41ccab3e13f7c8b218a6149bb41473ff78fe6 (diff)
doc: Add documentation for the new option to the Automatic Upgrades section
Diffstat (limited to 'nixos/doc')
-rw-r--r--nixos/doc/manual/installation/upgrading.xml13
1 files changed, 9 insertions, 4 deletions
diff --git a/nixos/doc/manual/installation/upgrading.xml b/nixos/doc/manual/installation/upgrading.xml
index 8d3f35b7c26f4..92864cf2557a3 100644
--- a/nixos/doc/manual/installation/upgrading.xml
+++ b/nixos/doc/manual/installation/upgrading.xml
@@ -120,12 +120,17 @@ nixos https://nixos.org/channels/nixos-unstable
    to <filename>configuration.nix</filename>:
 <programlisting>
 <xref linkend="opt-system.autoUpgrade.enable"/> = true;
+<xref linkend="opt-system.autoUpgrade.allowReboot"/> = true;
 </programlisting>
    This enables a periodically executed systemd service named
-   <literal>nixos-upgrade.service</literal>. It runs <command>nixos-rebuild
-   switch --upgrade</command> to upgrade NixOS to the latest version in the
-   current channel. (To see when the service runs, see <command>systemctl
-   list-timers</command>.) You can also specify a channel explicitly, e.g.
+   <literal>nixos-upgrade.service</literal>. If the <literal>allowReboot</literal>
+   option is <literal>false</literal>, it runs <command>nixos-rebuild switch
+   --upgrade</command> to upgrade NixOS to the latest version in the current
+   channel. (To see when the service runs, see <command>systemctl list-timers</command>.)
+   If <literal>allowReboot</literal> is <literal>true</literal>, then the
+   system will automatically reboot if the new generation contains a different
+   kernel, initrd or kernel modules.
+   You can also specify a channel explicitly, e.g.
 <programlisting>
 <xref linkend="opt-system.autoUpgrade.channel"/> = https://nixos.org/channels/nixos-19.09;
 </programlisting>