fix: merge services.displayManager into single block
Some checks failed
CI / check (pull_request) Failing after 1m32s
CI / build-and-cache (pull_request) Has been skipped

NixOS doesn't allow duplicate attribute set definitions in the
same module. Combine sessionPackages and autologin config.
This commit is contained in:
Ash
2026-03-07 10:13:47 -08:00
parent eacfa28321
commit 77f792b9bf

View File

@@ -77,7 +77,13 @@ in
services.desktopManager.plasma6.enable = true;
# Register the bigscreen session with the display manager
services.displayManager.sessionPackages = [ plasma-bigscreen ];
services.displayManager = {
sessionPackages = [ plasma-bigscreen ];
} // optionalAttrs cfg.autologin {
autoLogin.enable = true;
autoLogin.user = cfg.user;
defaultSession = "plasma-bigscreen-wayland";
};
xdg.portal.configPackages = [ plasma-bigscreen ];
# Fix homescreen not being focused after quitting app or on boot
@@ -123,10 +129,5 @@ in
};
};
services.displayManager = mkIf cfg.autologin {
autoLogin.enable = true;
autoLogin.user = cfg.user;
defaultSession = "plasma-bigscreen-wayland";
};
};
}