diff options
author | Daniel Frank <git@danielfrank.net> | 2019-10-12 22:23:53 +0200 |
---|---|---|
committer | Daniel Frank <git@danielfrank.net> | 2020-02-08 11:44:59 +0100 |
commit | 73220589e08d1916555431eecebf9892501d1db7 (patch) | |
tree | f11d4130849f19ee0f748f0d2ce9f6762df6483c /nixos/doc | |
parent | 2de41ccab3e13f7c8b218a6149bb41473ff78fe6 (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.xml | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/nixos/doc/manual/installation/upgrading.xml b/nixos/doc/manual/installation/upgrading.xml index 8d3f35b7c26f..92864cf2557a 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> |