2023-09-08 01:14:09 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
2023-05-18 06:57:58 +02:00
|
|
|
services.xserver.videoDrivers = lib.mkForce ["nvidia"];
|
|
|
|
|
|
|
|
hardware = {
|
|
|
|
opengl = {
|
|
|
|
enable = true;
|
2023-09-01 20:07:03 +02:00
|
|
|
driSupport = true;
|
2023-05-18 06:57:58 +02:00
|
|
|
driSupport32Bit = true;
|
2023-09-08 01:14:09 +02:00
|
|
|
extraPackages = with pkgs; [
|
|
|
|
nvidia-vaapi-driver
|
|
|
|
];
|
2023-05-18 06:57:58 +02:00
|
|
|
};
|
|
|
|
nvidia = {
|
2023-09-01 20:07:03 +02:00
|
|
|
powerManagement.enable = true;
|
2023-05-18 06:57:58 +02:00
|
|
|
modesetting.enable = true;
|
2023-09-01 20:07:03 +02:00
|
|
|
open = false;
|
2023-05-18 06:57:58 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|