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;
|
2023-09-29 23:46:34 -04:00
|
|
|
|
|
|
|
initrd = {
|
|
|
|
verbose = false;
|
|
|
|
systemd.enable = true;
|
|
|
|
};
|
2023-06-19 01:36:50 -04:00
|
|
|
|
|
|
|
loader = {
|
|
|
|
efi.canTouchEfiVariables = true;
|
2023-09-29 23:46:34 -04:00
|
|
|
timeout = 2;
|
2023-06-19 01:36:50 -04:00
|
|
|
grub = {
|
|
|
|
enable = true;
|
|
|
|
device = "nodev";
|
|
|
|
efiSupport = true;
|
|
|
|
extraConfig = ''
|
|
|
|
set timeout_style=hidden
|
|
|
|
'';
|
|
|
|
# Because it still draws that image otherwise
|
|
|
|
splashImage = null;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-09-21 17:10:25 -04:00
|
|
|
extraModulePackages = with config.boot.kernelPackages; [
|
|
|
|
v4l2loopback
|
|
|
|
];
|
|
|
|
|
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;
|
2023-07-15 17:47:37 -04:00
|
|
|
themePackages = [ pkgs.dracula-plymouth ];
|
2023-07-15 00:45:09 -04:00
|
|
|
theme = "dracula";
|
2023-06-19 01:36:50 -04:00
|
|
|
};
|
2023-09-19 09:36:39 -04:00
|
|
|
|
|
|
|
# https://github.com/NixOS/nixpkgs/issues/254807#issuecomment-1722351771
|
|
|
|
swraid.enable = false;
|
2023-06-19 01:36:50 -04:00
|
|
|
};
|
|
|
|
}
|