From 1da3ba110c8940146588c9adf52811e70f449eb1 Mon Sep 17 00:00:00 2001 From: ilkecan Date: Fri, 25 Feb 2022 15:17:00 +0000 Subject: [PATCH] common/cpu/intel: define VDPAU_DRIVER env variable `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". --- common/cpu/intel/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/cpu/intel/default.nix b/common/cpu/intel/default.nix index ad945f3..273360d 100644 --- a/common/cpu/intel/default.nix +++ b/common/cpu/intel/default.nix @@ -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;