mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-25 17:24:35 +00:00
Use silent boot if plymouth is enabled
This commit is contained in:
parent
97680bd24e
commit
ac39d93be3
|
@ -23,5 +23,10 @@ in {
|
|||
This option defaults to `true` if the host provides patches to the kernel package in
|
||||
`boot.kernelPatches`
|
||||
'';
|
||||
|
||||
silentBoot = mkEnableOption ''
|
||||
almost entirely silent boot process through `quiet` kernel parameter
|
||||
''
|
||||
// { default = cfg.plymouth.enable; };
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
{ config, lib, ... }: let
|
||||
inherit (lib) mkDefault;
|
||||
inherit (lib) mkDefault optionals;
|
||||
|
||||
cfg = config.myOptions.system.boot;
|
||||
in {
|
||||
config.boot = {
|
||||
boot = {
|
||||
# kernel console loglevel
|
||||
consoleLogLevel = 3;
|
||||
|
||||
|
@ -38,5 +38,21 @@ in {
|
|||
# but should be tweaked based on your systems capabilities
|
||||
tmpfsSize = mkDefault "50%";
|
||||
};
|
||||
|
||||
kernelParams = (optionals cfg.silentBoot [
|
||||
# tell the kernel to not be verbose
|
||||
"quiet"
|
||||
|
||||
"loglevel=3" # 1: system is unusable | 3: error condition | 7: very verbose
|
||||
|
||||
# udev log message level
|
||||
# rd prefix means systemd-udev will be used instead of initrd
|
||||
"udev.log_level=3"
|
||||
"rd.udev.log_level=3"
|
||||
|
||||
# disable systemd status messages
|
||||
"systemd.show_status=auto"
|
||||
"rd.systemd.show_status=auto"
|
||||
]);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue