nixos/modules/boot/chn-PC.nix
2023-06-13 21:23:33 +08:00

32 lines
829 B
Nix

inputs:
{
config =
{
boot =
{
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;
initrd.availableKernelModules =
[
"ahci" "i915" "intel_cstate" "nvidia" "nvidia_drm" "nvidia_modeset" "nvidia_uvm" "nvme" "sr_mod"
"usb_storage" "virtio_blk" "virtio_pci" "xhci_pci"
];
kernelModules = [ "kvm-intel" ];
extraModprobeConfig = "options kvm_intel nested=1";
kernelParams = [ "delayacct" "acpi_osi=Linux" "resume_offset=19145984" ];
resumeDevice = "/dev/mapper/root";
};
hardware.cpu.intel.updateMicrocode = true;
};
}