mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-22 03:31:34 +01:00
Extract bootloader and silent boot configs into separate files
This commit is contained in:
parent
9428e46545
commit
e551976a8a
3 changed files with 37 additions and 38 deletions
19
modules/system/boot/silent.nix
Normal file
19
modules/system/boot/silent.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
options.myConfig.boot.silent = lib.mkEnableOption "";
|
||||
|
||||
config = lib.mkIf config.myConfig.boot.silent {
|
||||
boot = {
|
||||
kernelParams = [
|
||||
"quiet"
|
||||
"rd.systemd.show_status=false"
|
||||
"rd.udev.log_level=3"
|
||||
"udev.log_priority=3"
|
||||
];
|
||||
consoleLogLevel = 3;
|
||||
initrd.verbose = false;
|
||||
initrd.systemd.enable = true;
|
||||
plymouth.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue