54 lines
1.0 KiB
Nix
Executable File
54 lines
1.0 KiB
Nix
Executable File
{ pkgs, namespace, lib, ... }:
|
|
let
|
|
kernel = pkgs.${namespace}.linuxPackages_cachyos-deckify-lto;
|
|
in
|
|
{
|
|
# Configure bootloader with lanzaboot and secureboot
|
|
boot = {
|
|
consoleLogLevel = 0;
|
|
initrd.verbose = false;
|
|
kernelModules = [ "nct6775" ];
|
|
loader = {
|
|
systemd-boot = {
|
|
consoleMode = "5";
|
|
};
|
|
};
|
|
|
|
lanzaboote = {
|
|
settings = {
|
|
console-mode = "max";
|
|
timeout = "5";
|
|
};
|
|
};
|
|
|
|
plymouth = {
|
|
enable = true;
|
|
};
|
|
|
|
kernelPackages = kernel;
|
|
|
|
kernelParams = [
|
|
"quiet"
|
|
"amdgpu.ppfeaturemask=0xffffffff"
|
|
"splash"
|
|
"rd.systemd.show_status=false"
|
|
"rd.udev.log_level=3"
|
|
"udev.log_priority=3"
|
|
"loglevel=0"
|
|
"vt.global_cursor_default=0"
|
|
"rd.shell=0"
|
|
# Disable audit messages
|
|
"audit=0"
|
|
# Disable CPU mitigations messages
|
|
"mitigations=off"
|
|
];
|
|
|
|
bootspec.enable = true;
|
|
};
|
|
|
|
# Further reduce systemd output
|
|
systemd = {
|
|
services.systemd-udev-settle.enable = false;
|
|
};
|
|
}
|