2023-02-15 16:09:53 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
services.xserver.videoDrivers = lib.mkForce ["nvidia"];
|
2023-02-10 17:41:37 +01:00
|
|
|
|
2023-02-15 16:09:53 +01:00
|
|
|
hardware.nvidia = {
|
|
|
|
powerManagement = {
|
|
|
|
enable = true;
|
|
|
|
finegrained = true;
|
|
|
|
};
|
|
|
|
modesetting.enable = true;
|
|
|
|
prime = {
|
|
|
|
offload = {
|
|
|
|
enableOffloadCmd = true;
|
|
|
|
enable = true;
|
|
|
|
};
|
2023-02-10 17:41:37 +01:00
|
|
|
|
2023-02-15 16:09:53 +01:00
|
|
|
intelBusId = "PCI:00:02:0";
|
|
|
|
nvidiaBusId = "PCI:59:00:0";
|
|
|
|
};
|
2023-02-10 17:41:37 +01:00
|
|
|
};
|
|
|
|
}
|