systemd.sysupdate.reboot.enable
Whether to automatically reboot after an update.
If set to true, the system will automatically reboot via a
systemd.timer unit but only after a new version was installed.
This uses a unit completely separate from the one performing the update because it is typically advisable to download updates regularly while the system is up, but delay reboots until the appropriate time (i.e. typically at night).
Set this to false if you do not want to reboot after an update. This
is useful when you update a container image or another source where
rebooting is not necessary in order to finalize the update.
- Type
boolean- Default
false- Example
true- Declared
- <nixpkgs/nixos/modules/system/boot/systemd/sysupdate.nix>