nixos-configs/nixos/cfg/boot.nix

49 lines
1.1 KiB
Nix

{ config, pkgs, ... }:
{
boot = {
kernelPackages = pkgs.linuxPackages_latest;
consoleLogLevel = 0;
initrd.verbose = false;
initrd.systemd.enable = true;
loader = {
efi.canTouchEfiVariables = true;
grub = {
enable = true;
device = "nodev";
efiSupport = true;
extraConfig = ''
set timeout_style=hidden
'';
# Because it still draws that image otherwise
splashImage = null;
};
timeout = 2;
};
kernelModules = [ "kvm-amd" ];
kernelParams = [
"quiet"
"splash"
"boot.shell_on_fail"
"i915.fastboot=1"
"loglevel=3"
"rd.systemd.show_status=false"
"rd.udev.log_level=3"
"udev.log_priority=3"
"cryptdevice=UUID=ab82b477-2477-453f-b95f-28e5553ad10d:root"
"root=/dev/mapper/root"
];
plymouth = {
enable = true;
themePackages = [ pkgs.dracula-plymouth ];
theme = "dracula";
};
# https://github.com/NixOS/nixpkgs/issues/254807#issuecomment-1722351771
swraid.enable = false;
};
}