mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +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;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.aviallon.general;
|
cfg = config.aviallon.general;
|
||||||
|
desktopCfg = config.aviallon.desktop;
|
||||||
nixConfigValue = value:
|
nixConfigValue = value:
|
||||||
if value == true then "true"
|
if value == true then "true"
|
||||||
else if value == false then "false"
|
else if value == false then "false"
|
||||||
|
|
@ -81,7 +82,7 @@ in
|
||||||
nix.daemonIOSchedClass = "idle";
|
nix.daemonIOSchedClass = "idle";
|
||||||
|
|
||||||
system.autoUpgrade.enable = mkDefault true;
|
system.autoUpgrade.enable = mkDefault true;
|
||||||
system.autoUpgrade.allowReboot = mkDefault true;
|
system.autoUpgrade.allowReboot = mkIf (!desktopCfg.enable) (mkDefault true);
|
||||||
system.autoUpgrade.dates = "00:00";
|
system.autoUpgrade.dates = "00:00";
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue