2025-01-13 11:52:09 +08:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib;
|
|
|
|
let
|
2024-01-27 22:14:03 +08:00
|
|
|
cfg = config.global.gpu;
|
2024-02-19 12:55:23 +08:00
|
|
|
gui = with cfg; enable && session;
|
2025-01-13 11:52:09 +08:00
|
|
|
in
|
|
|
|
mkIf gui {
|
2024-01-02 16:36:28 +08:00
|
|
|
boot = {
|
2024-01-27 22:14:03 +08:00
|
|
|
loader.timeout = mkDefault 0;
|
2024-01-02 16:36:28 +08:00
|
|
|
consoleLogLevel = 0;
|
|
|
|
initrd.verbose = false;
|
|
|
|
initrd.systemd.enable = true;
|
|
|
|
plymouth.enable = true;
|
|
|
|
kernelParams = [
|
|
|
|
"quiet"
|
|
|
|
"splash"
|
|
|
|
"loglevel=3"
|
|
|
|
"rd.systemd.show_status=false"
|
|
|
|
"rd.udev.log_level=3"
|
|
|
|
"udev.log_priority=3"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|