feat: use intel-media-driver if available
This commit is contained in:
parent
242e4c5483
commit
79b3153020
1 changed files with 10 additions and 1 deletions
|
|
@ -1,7 +1,16 @@
|
|||
{ ... }: {
|
||||
{ config, lib, pkgs, ... }: {
|
||||
hardware.opengl = {
|
||||
enable = true;
|
||||
driSupport = true;
|
||||
driSupport32Bit = true;
|
||||
};
|
||||
|
||||
environment.variables = lib.mkIf (
|
||||
builtins.elem
|
||||
pkgs.intel-media-driver
|
||||
config.hardware.opengl.extraPackages
|
||||
) {
|
||||
LIBVA_DRIVER_NAME = "iHD";
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue