27 lines
487 B
Nix
27 lines
487 B
Nix
{ config, ... }:
|
|
|
|
{
|
|
boot.blacklistedKernelModules = [
|
|
"nouveau"
|
|
];
|
|
|
|
boot.kernelParams = [ "video=efifb:1920x1080" ];
|
|
|
|
boot.extraModulePackages = [ config.boot.kernelPackages.nvidia_x11 ];
|
|
|
|
hardware.graphics.enable = true;
|
|
|
|
hardware.nvidia = {
|
|
modesetting.enable = true;
|
|
open = true;
|
|
prime = {
|
|
offload = {
|
|
enable = true;
|
|
enableOffloadCmd = true;
|
|
};
|
|
intelBusId = "PCI:0@0:2:0";
|
|
nvidiaBusId = "PCI:1@0:0:0";
|
|
};
|
|
};
|
|
}
|