nixos/global/gpu/plymouth.nix

29 lines
464 B
Nix
Raw Normal View History

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;
gui = with cfg; enable && session;
2025-01-13 11:52:09 +08:00
in
mkIf gui {
boot = {
2024-01-27 22:14:03 +08:00
loader.timeout = 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"
];
};
}