2023-06-15 09:56:25 +08:00
|
|
|
{ pkgs, ... }@inputs:
|
2023-06-05 21:53:13 +08:00
|
|
|
{
|
|
|
|
config =
|
|
|
|
{
|
|
|
|
boot =
|
|
|
|
{
|
2023-06-15 10:10:39 +08:00
|
|
|
kernelPackages = inputs.pkgs.linuxPackages_xanmod_latest;
|
2023-06-09 21:09:52 +08:00
|
|
|
initrd.availableKernelModules =
|
|
|
|
[
|
|
|
|
"ahci" "i915" "intel_cstate" "nvidia" "nvidia_drm" "nvidia_modeset" "nvidia_uvm" "nvme" "sr_mod"
|
2023-06-10 01:13:54 +08:00
|
|
|
"usb_storage" "virtio_blk" "virtio_pci" "xhci_pci"
|
2023-06-09 21:09:52 +08:00
|
|
|
];
|
2023-06-05 21:53:13 +08:00
|
|
|
kernelModules = [ "kvm-intel" ];
|
|
|
|
extraModprobeConfig = "options kvm_intel nested=1";
|
2023-06-09 21:09:52 +08:00
|
|
|
kernelParams = [ "delayacct" "acpi_osi=Linux" "resume_offset=19145984" ];
|
|
|
|
resumeDevice = "/dev/mapper/root";
|
2023-06-05 21:53:13 +08:00
|
|
|
};
|
|
|
|
hardware.cpu.intel.updateMicrocode = true;
|
|
|
|
};
|
|
|
|
}
|