feat(nvidia): add vaapi driver
This commit is contained in:
parent
79a174b607
commit
9ace4cdd07
2 changed files with 6 additions and 2 deletions
|
|
@ -50,9 +50,11 @@ in
|
||||||
opengl = {
|
opengl = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
libva
|
intel-media-driver
|
||||||
|
vaapiIntel
|
||||||
vaapiVdpau
|
vaapiVdpau
|
||||||
libvdpau-va-gl
|
libvdpau-va-gl
|
||||||
|
libva-utils
|
||||||
];
|
];
|
||||||
extraPackages32 = with pkgs.pkgsi686Linux; [
|
extraPackages32 = with pkgs.pkgsi686Linux; [
|
||||||
vaapiVdpau
|
vaapiVdpau
|
||||||
|
|
|
||||||
|
|
@ -13,11 +13,13 @@ in
|
||||||
package = production;
|
package = production;
|
||||||
modesetting.enable = true;
|
modesetting.enable = true;
|
||||||
nvidiaSettings = true;
|
nvidiaSettings = true;
|
||||||
powerManagement.enable = false;
|
powerManagement.enable = true;
|
||||||
};
|
};
|
||||||
|
hardware.opengl.extraPackages = [ pkgs.nvidia-vaapi-driver ];
|
||||||
services.xserver.videoDrivers = [ "nvidia" ];
|
services.xserver.videoDrivers = [ "nvidia" ];
|
||||||
environment.sessionVariables = {
|
environment.sessionVariables = {
|
||||||
LIBVA_DRIVER_NAME = "nvidia";
|
LIBVA_DRIVER_NAME = "nvidia";
|
||||||
|
NVD_BACKEND = "direct";
|
||||||
};
|
};
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
vulkan-loader
|
vulkan-loader
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue