mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 13:08:44 +08:00
16 lines
393 B
Nix
16 lines
393 B
Nix
|
inputs:
|
||
|
{
|
||
|
config =
|
||
|
{
|
||
|
boot =
|
||
|
{
|
||
|
initrd.availableKernelModules
|
||
|
= [ "ahci" "nvme" "sr_mod" "usb_storage" "virtio_blk" "virtio_pci" "xhci_pci" ];
|
||
|
kernelModules = [ "kvm-intel" ];
|
||
|
extraModulePackages = with inputs.config.boot.kernelPackages; [ cpupower xone xpadneo ];
|
||
|
extraModprobeConfig = "options kvm_intel nested=1";
|
||
|
};
|
||
|
hardware.cpu.intel.updateMicrocode = true;
|
||
|
};
|
||
|
}
|