fixed nvidia settings

This commit is contained in:
Richie Cahill
2024-06-13 22:10:33 -04:00
committed by Alice Huston
parent 13b6a97d74
commit 065f7eb3ea
3 changed files with 13 additions and 3 deletions

View File

@ -1,8 +1,16 @@
{ config, ... }:
{
services.xserver.videoDrivers = [ "nvidia" ];
hardware = {
nvidia.package = config.boot.kernelPackages.nvidiaPackages.production;
nvidia = {
modesetting.enable = true;
powerManagement = {
enable = true;
finegrained = true;
};
package = config.boot.kernelPackages.nvidiaPackages.production;
nvidiaSettings = true;
};
nvidia-container-toolkit.enable = true;
};
}