modules - fix nvidia drivers module

This commit is contained in:
shynd 2025-02-20 18:27:42 +01:00
parent 0ac9d2cae2
commit da0976b92b
1 changed files with 38 additions and 38 deletions

View File

@ -11,51 +11,51 @@ in
config = mkIf cfg.enable {
services.xserver.videoDrivers = [ "nvidia" ];
};
hardware.graphics = {
enable = true;
enable32Bit = true;
extraPackages = with pkgs; [
vaapiVdpau
libvdpau
libvdpau-vaapi-driver
vdpauinfo
libva
libva-utils
];
};
hardware.graphics = {
enable = true;
enable32Bit = true;
extraPackages = with pkgs; [
vaapiVdpau
libvdpau
libvdpau-vaapi-driver
vdpauinfo
libva
libva-utils
];
};
hardware.nvidia = {
# modesetting is required
modesetting.enable = true;
# nvidia power management. experimental, can cause sleep/suspend to fail
powerManagement.enable = false;
hardware.nvidia = {
# modesetting is required
modesetting.enable = true;
# nvidia power management. experimental, can cause sleep/suspend to fail
powerManagement.enable = false;
# fine-grained power management. turns off gpu when not in use.
# experimental and only works on modern nvidia gpus (turing or newer)
powerManagement.finegrained = false;
# fine-grained power management. turns off gpu when not in use.
# experimental and only works on modern nvidia gpus (turing or newer)
powerManagement.finegrained = false;
# dynamicBoost.enable = true;
# dynamicBoost.enable = true;
nvidiaPersistenced = false;
nvidiaPersistenced = false;
# use the nvidia open source kernel module (not to be confused with the
# independent third-party "nouveau" open source driver).
# support is limited to turing and later architectures. full list of
# supported gpus is at:
# https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus
# only available from driver 515.43.04+
# currently alpha-quality/buggy, so false is currently the recommended setting.
open = false;
# use the nvidia open source kernel module (not to be confused with the
# independent third-party "nouveau" open source driver).
# support is limited to turing and later architectures. full list of
# supported gpus is at:
# https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus
# only available from driver 515.43.04+
# currently alpha-quality/buggy, so false is currently the recommended setting.
open = false;
# enable the nvidia settings menu.
# accessible via `nvidia-settings`.
nvidiaSettings = true;
# enable the nvidia settings menu.
# accessible via `nvidia-settings`.
nvidiaSettings = true;
# optionally, you may need to select the appropriate driver version for your
# specific gpu.
package = config.boot.kernelPackages.nvidiaPackages.latest;
# optionally, you may need to select the appropriate driver version for your
# specific gpu.
package = config.boot.kernelPackages.nvidiaPackages.latest;
};
};
}