rebootAfterKernelUpgrade: document that this can be done from nixos

Since NixOS 19.09 autoUpgrade also has the ability to do automatic
reboots. Its detection on whether a reboot is necessary is a bit more
sophisticated. Having this option in the mail-server implied to me that
it did something additionally, though it was just a feature which was
not included in NixOS at the time it was introduced for the mail-server.

Mentioning the fact in the documentation might help people not to get
confused why they should turn the `system.autoUpgrade.allowReboot` off
and instead use the mail-servers reboot flag.
This commit is contained in:
Michael Lohmann 2025-02-24 16:11:59 +01:00
parent 8c1c4640b8
commit f23faf97d6

View file

@ -1236,6 +1236,7 @@ in
description = ''
Whether to enable automatic reboot after kernel upgrades.
This is to be used in conjunction with `system.autoUpgrade.enable = true;`
This can also be achieved via `system.autoUpgrade.allowReboot = true;`
'';
};
method = mkOption {