2023-06-05 21:53:13 +08:00
|
|
|
inputs:
|
|
|
|
{
|
|
|
|
config =
|
|
|
|
{
|
|
|
|
boot =
|
|
|
|
{
|
2023-06-13 21:23:33 +08:00
|
|
|
kernelPackages = ( inputs.inputs.nixpkgs.lib.nixosSystem
|
|
|
|
{
|
|
|
|
system = "x86_64-linux";
|
|
|
|
modules =
|
|
|
|
[{
|
|
|
|
nixpkgs =
|
|
|
|
{
|
|
|
|
hostPlatform = { system = "x86_64-linux"; gcc = { arch = "alderlake"; tune = "alderlake"; }; };
|
|
|
|
config.allowUnfree = true;
|
|
|
|
};
|
|
|
|
}];
|
|
|
|
} ).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;
|
|
|
|
};
|
|
|
|
}
|