nixos-configs/nixos/cfg/boot.nix

54 lines
1.2 KiB
Nix
Raw Permalink Normal View History

2023-06-19 01:36:50 -04:00
{ config, pkgs, ... }:
{
boot = {
2023-06-26 17:29:17 -04:00
kernelPackages = pkgs.linuxPackages_latest;
2023-06-19 01:36:50 -04:00
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;
};
2023-09-21 17:10:25 -04:00
extraModulePackages = with config.boot.kernelPackages; [
v4l2loopback
];
2023-09-12 08:02:35 -04:00
kernelModules = [ "kvm-amd" ];
2023-06-19 01:36:50 -04:00
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";
2023-06-19 01:36:50 -04:00
};
# https://github.com/NixOS/nixpkgs/issues/254807#issuecomment-1722351771
swraid.enable = false;
2023-06-19 01:36:50 -04:00
};
}