{ config, pkgs, ... }: { boot = { initrd = { compressor = "lz4"; compressorArgs = ["-9"]; # TODO check this: availableKernelModules = ["xhci_pci" "nvme" "rtsx_pci_sdmmc"]; }; kernelModules = ["kvm-amd"]; kernelPackages = pkgs.linuxPackages_latest; loader = { grub = { enable = true; version = 2; theme = pkgs.nixos-grub2-theme; splashImage = ./grub_boot_image.png; efiSupport = true; device = "nodev"; # only for efi }; efi = { canTouchEfiVariables = true; efiSysMountPoint = "/boot"; }; }; }; }