From f23faf97d6668a4847be5d5c6399493e596b406d Mon Sep 17 00:00:00 2001 From: Michael Lohmann Date: Mon, 24 Feb 2025 16:11:59 +0100 Subject: [PATCH] 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. --- default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/default.nix b/default.nix index ad6a53a..76ad3b4 100644 --- a/default.nix +++ b/default.nix @@ -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 {