2023-05-06 15:47:54 +02:00
|
|
|
{ lib, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
../../../common/cpu/intel
|
|
|
|
../../../common/gpu/nvidia/prime.nix
|
2024-09-04 19:38:19 +02:00
|
|
|
../../../common/gpu/nvidia/turing
|
2023-05-06 15:47:54 +02:00
|
|
|
../../../common/pc/laptop
|
|
|
|
../../../common/pc/laptop/ssd
|
|
|
|
];
|
|
|
|
|
|
|
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
|
|
|
boot.kernelModules = [ "kvm-intel" ];
|
2023-05-23 07:29:46 +02:00
|
|
|
boot.kernelParams = [
|
|
|
|
"tpm_tis.interrupts=0" # Upstream bug: https://bugzilla.kernel.org/show_bug.cgi?id=204121
|
|
|
|
# without this, kacpid worker thread consumes 100% cpu on kernels 5.15.111 and up
|
|
|
|
];
|
2023-05-06 15:47:54 +02:00
|
|
|
boot.blacklistedKernelModules = [ "i2c_nvidia_gpu" ];
|
|
|
|
|
|
|
|
hardware.nvidia.modesetting.enable = lib.mkDefault true;
|
2024-06-21 15:44:42 +02:00
|
|
|
hardware.graphics = {
|
2023-05-06 15:47:54 +02:00
|
|
|
enable = lib.mkDefault true;
|
2024-06-21 15:44:42 +02:00
|
|
|
enable32Bit = lib.mkDefault true;
|
2023-05-06 15:47:54 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
hardware.nvidia.prime = {
|
|
|
|
intelBusId = lib.mkDefault "PCI:0:2:0";
|
|
|
|
nvidiaBusId = lib.mkDefault "PCI:1:0:0";
|
|
|
|
};
|
|
|
|
}
|