mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 11:36:20 +00:00
refactor: make the whole thing more generic
This commit is contained in:
36
modules/nixos/boot/quiet.nix
Normal file
36
modules/nixos/boot/quiet.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{ config, lib, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let cfg = config.boot.quiet;
|
||||
|
||||
in {
|
||||
options.boot.quiet = { enable = mkEnableOption (mdDoc "Clean, quiet boot"); };
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
boot = {
|
||||
loader = {
|
||||
timeout = 0;
|
||||
systemd-boot.consoleMode = "max";
|
||||
};
|
||||
|
||||
kernelParams = [
|
||||
# Redirect all kernel messages to a console off screen
|
||||
#"fbcon=vc:2-6"
|
||||
#"console=tty1"
|
||||
|
||||
"video=3840x2160@144"
|
||||
"splash"
|
||||
"quiet"
|
||||
|
||||
#"rd.udev.log_level=3"
|
||||
#"rd.systemd.show_status=false"
|
||||
#"udev.log_priority=3"
|
||||
#"boot.shell_on_fail"
|
||||
#"vt.global_cursor_default=0" # no cursor blinking
|
||||
];
|
||||
consoleLogLevel = 0;
|
||||
initrd.verbose = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user