Added option for automatic reboot after a kernel upgrade.
This commit is contained in:
parent
1dd394e63f
commit
610a4008dc
3 changed files with 69 additions and 1 deletions
22
default.nix
22
default.nix
|
@ -621,6 +621,27 @@ in
|
|||
|
||||
};
|
||||
|
||||
rebootAfterKernelUpgrade = {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
example = true;
|
||||
description = ''
|
||||
Whether to enable automatic reboot after kernel upgrades.
|
||||
This is to be used in conjunction with system.autoUpgrade.enable = true"
|
||||
'';
|
||||
};
|
||||
method = mkOption {
|
||||
type = types.enum [ "reboot" "systemctl kexec" ];
|
||||
default = "reboot";
|
||||
description = ''
|
||||
Whether to issue a full "reboot" or just a "systemctl kexec"-only reboot.
|
||||
It is recommended to use the default value because the quicker kexec reboot has a number of problems.
|
||||
Also if your server is running in a virtual machine the regular reboot will already be very quick.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
backup = {
|
||||
enable = mkEnableOption "backup via rsnapshot";
|
||||
|
||||
|
@ -695,5 +716,6 @@ in
|
|||
./mail-server/rmilter.nix
|
||||
./mail-server/nginx.nix
|
||||
./mail-server/kresd.nix
|
||||
./mail-server/post-upgrade-check.nix
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue