[General] Do not auto reboot if we are on desktop

This commit is contained in:
Antoine Viallon 2022-01-25 12:01:26 +01:00
parent 00a62a9f34
commit 0fa2154a12
Signed by: aviallon
GPG key ID: 186FC35EDEB25716

View file

@ -2,6 +2,7 @@
with lib;
let
cfg = config.aviallon.general;
desktopCfg = config.aviallon.desktop;
nixConfigValue = value:
if value == true then "true"
else if value == false then "false"
@ -81,7 +82,7 @@ in
nix.daemonIOSchedClass = "idle";
system.autoUpgrade.enable = mkDefault true;
system.autoUpgrade.allowReboot = mkDefault true;
system.autoUpgrade.allowReboot = mkIf (!desktopCfg.enable) (mkDefault true);
system.autoUpgrade.dates = "00:00";