nixos/modules/boot/chn-PC.nix

33 lines
908 B
Nix
Raw Normal View History

2023-06-15 09:56:25 +08:00
{ pkgs, ... }@inputs:
2023-06-05 21:53:13 +08:00
{
config =
{
boot =
{
2023-06-15 09:56:25 +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_zen;
kernelPackages = inputs.pkgs.linuxPackages_zen;
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;
};
}