nix-config/config/hardware/nvidia.nix

26 lines
423 B
Nix
Raw Normal View History

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) {
services.xserver.videoDrivers = lib.mkForce ["nvidia"];
hardware = {
2024-06-28 20:32:11 +02:00
graphics = {
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
];
};
nvidia = {
powerManagement.enable = true;
modesetting.enable = true;
open = false;
};
};
}