global(gpu): add session checks for session-specific options

This commit is contained in:
514fpv 2024-02-19 12:55:23 +08:00
parent 2b6593a439
commit b5790eceed
Signed by: koishi
SSH key fingerprint: SHA256:652+A2yCgByK6j4+urGiApE+tZbISyelwTnr76Tm+x8
3 changed files with 12 additions and 7 deletions

View file

@ -3,7 +3,8 @@
, config
, ... }: with lib; let
cfg = config.global.gpu;
in mkIf cfg.enable {
gui = with cfg; enable && session;
in mkIf gui {
boot = {
loader.timeout = mkDefault 0;
consoleLogLevel = 0;