Skip to content

Commit

Permalink
common/cpu/intel: define VDPAU_DRIVER env variable
Browse files Browse the repository at this point in the history
`libvdpau-va-gl` is a wrapper around VAAPI to have a VDPAU driver, which
is required for Intel GPU's. `VDPAU_DRIVER` environment variable is set
to "va_gl", since it defaults to "nvidia".
  • Loading branch information
ilkecan committed Feb 26, 2022
1 parent a8d3311 commit 1da3ba1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions common/cpu/intel/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
{
boot.initrd.kernelModules = [ "i915" ];

environment.variables = {
VDPAU_DRIVER = lib.mkIf config.hardware.opengl.enable (lib.mkDefault "va_gl");
};

hardware.cpu.intel.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;

Expand Down

0 comments on commit 1da3ba1

Please sign in to comment.