mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[General] Do not auto reboot if we are on desktop
This commit is contained in:
parent
00a62a9f34
commit
0fa2154a12
1 changed files with 2 additions and 1 deletions
|
|
@ -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";
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue