git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #70887 from tokudan/autoUpgrade.allowReboot-rn

doc: Add documentation for the new option to the Automatic Upgrades section

commit4befcf4c6e9cfd32f54f4567db2851f4aa41dfad authorworldofpeace <worldofpeace@protonmail.ch> dateSat 8 Feb 2020, 09:56 (7 years ago) parent247bcbd7322058
1 file changed+9−4
nixos/doc/manual/installation/upgrading.xml+9−4
nixos/doc/manual/installation/upgrading.xml+9−4
@@ -120,12 +120,17 @@ nixos https://nixos.org/channels/nixos-unstable
120120 to <filename>configuration.nix</filename>:
121121<programlisting>
122122<xref linkend="opt-system.autoUpgrade.enable"/> = true;
123+<xref linkend="opt-system.autoUpgrade.allowReboot"/> = true;
123124</programlisting>
124125 This enables a periodically executed systemd service named
125− <literal>nixos-upgrade.service</literal>. It runs <command>nixos-rebuild
126− switch --upgrade</command> to upgrade NixOS to the latest version in the
127− current channel. (To see when the service runs, see <command>systemctl
128− list-timers</command>.) You can also specify a channel explicitly, e.g.
126+ <literal>nixos-upgrade.service</literal>. If the <literal>allowReboot</literal>
127+ option is <literal>false</literal>, it runs <command>nixos-rebuild switch
128+ --upgrade</command> to upgrade NixOS to the latest version in the current
129+ channel. (To see when the service runs, see <command>systemctl list-timers</command>.)
130+ If <literal>allowReboot</literal> is <literal>true</literal>, then the
131+ system will automatically reboot if the new generation contains a different
132+ kernel, initrd or kernel modules.
133+ You can also specify a channel explicitly, e.g.
129134<programlisting>
130135<xref linkend="opt-system.autoUpgrade.channel"/> = https://nixos.org/channels/nixos-19.09;
131136</programlisting>