dotfiles/modules/boot/silent-boot.nix

38 lines
605 B
Nix
Raw Normal View History

2024-07-19 12:00:55 +00:00
{
lib,
config,
pkgs,
...
}:
2024-07-18 21:56:00 +00:00
with lib;
let
cfg = config.modules.silent-boot;
2024-07-19 12:00:55 +00:00
in
{
2024-07-18 21:56:00 +00:00
options.modules.silent-boot = {
enable = mkEnableOption "silent-boot";
};
config = mkIf cfg.enable {
boot = {
2024-07-18 21:58:59 +00:00
loader.timeout = 0;
2024-07-19 12:00:55 +00:00
2024-07-18 21:58:59 +00:00
consoleLogLevel = 0;
initrd.verbose = false;
initrd.checkJournalingFS = false;
2024-07-18 21:56:00 +00:00
2024-07-18 21:58:59 +00:00
kernelParams = [
"quiet"
"boot.shell_on_fail"
"loglevel=3"
"rd.systemd.show_status=false"
"rd.udev.log_level=3"
"udev.log_priority=3"
"video=efifb:nobgrt"
"bgrt_disable"
];
};
2024-07-18 21:56:00 +00:00
};
2024-07-19 12:00:55 +00:00
}