2023-09-08 01:14:09 +02:00
|
|
|
{
|
|
|
|
lib,
|
2023-09-26 22:25:58 +02:00
|
|
|
minimal,
|
2023-09-08 01:14:09 +02:00
|
|
|
pkgs,
|
|
|
|
...
|
2023-09-26 22:25:58 +02:00
|
|
|
}:
|
|
|
|
lib.optionalAttrs (!minimal) {
|
2023-05-18 06:57:58 +02:00
|
|
|
services.xserver.videoDrivers = lib.mkForce ["nvidia"];
|
|
|
|
|
|
|
|
hardware = {
|
2024-06-28 20:32:11 +02:00
|
|
|
graphics = {
|
2023-05-18 06:57:58 +02:00
|
|
|
enable = true;
|
2024-06-28 20:32:11 +02:00
|
|
|
enable32Bit = true;
|
2023-09-08 01:14:09 +02:00
|
|
|
extraPackages = with pkgs; [
|
2024-06-10 14:40:04 +02:00
|
|
|
vaapiVdpau
|
2023-09-08 01:14:09 +02:00
|
|
|
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
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|