feat: use intel-media-driver if available

This commit is contained in:
Jacob Bachmann 2024-05-08 23:35:38 +02:00
parent 242e4c5483
commit 79b3153020
Signed by: bchmnn
GPG key ID: 732A612DAD28067D

View file

@ -1,7 +1,16 @@
{ ... }: { { config, lib, pkgs, ... }: {
hardware.opengl = { hardware.opengl = {
enable = true; enable = true;
driSupport = true; driSupport = true;
driSupport32Bit = true; driSupport32Bit = true;
}; };
environment.variables = lib.mkIf (
builtins.elem
pkgs.intel-media-driver
config.hardware.opengl.extraPackages
) {
LIBVA_DRIVER_NAME = "iHD";
};
} }