{ pkgs
, lib
, config
, ... }: with lib; let
  cfg = config.global.gui;
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"
    ];
  };
}
