2024-01-02 16:36:28 +08:00
|
|
|
{ pkgs
|
|
|
|
, lib
|
|
|
|
, config
|
|
|
|
, ... }: with lib; let
|
2024-01-07 22:01:31 +08:00
|
|
|
cfg = config.global.gui;
|
2024-01-02 16:36:28 +08:00
|
|
|
in mkIf cfg.enable {
|
|
|
|
boot = {
|
|
|
|
loader.timeout = lib.mkDefault 0;
|
|
|
|
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"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|