diff options
author | worldofpeace <worldofpeace@protonmail.ch> | 2020-02-08 09:56:29 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-08 09:56:29 -0500 |
commit | 4befcf4c6e9cfd32f54f4567db2851f4aa41dfad (patch) | |
tree | ec96bcbf8783428c73eed82e140eb5beafb48d58 /nixos | |
parent | 247bcbdcf6999d824fed869f9c0afd946a245ee5 (diff) | |
parent | 73220589e08d1916555431eecebf9892501d1db7 (diff) | |
download | nixpkgs-4befcf4c6e9cfd32f54f4567db2851f4aa41dfad.tar nixpkgs-4befcf4c6e9cfd32f54f4567db2851f4aa41dfad.tar.gz nixpkgs-4befcf4c6e9cfd32f54f4567db2851f4aa41dfad.tar.bz2 nixpkgs-4befcf4c6e9cfd32f54f4567db2851f4aa41dfad.tar.lz nixpkgs-4befcf4c6e9cfd32f54f4567db2851f4aa41dfad.tar.xz nixpkgs-4befcf4c6e9cfd32f54f4567db2851f4aa41dfad.tar.zst nixpkgs-4befcf4c6e9cfd32f54f4567db2851f4aa41dfad.zip |
Merge pull request #70887 from tokudan/autoUpgrade.allowReboot-rn
doc: Add documentation for the new option to the Automatic Upgrades section
Diffstat (limited to 'nixos')
-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 8d3f35b7c26..92864cf2557 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> |