diff --git a/systems/lenovo/hardware.nix b/systems/lenovo/hardware.nix index 67c3b34..c439b12 100644 --- a/systems/lenovo/hardware.nix +++ b/systems/lenovo/hardware.nix @@ -1,16 +1,21 @@ { pkgs, ... }: { imports = [ ./hardware-configuration.nix ]; - hardware.opengl = { + environment.variables = { + VDPAU_DRIVER = "radeonsi"; + QT_MEDIA_BACKED = "gstreamer"; # ffmpeg can't choose between vdpau and vaapi for some reason + }; + + hardware.graphics = { enable = true; - driSupport = true; - driSupport32Bit = true; + enable32Bit = true; + extraPackages = with pkgs; [ - rocm-opencl-icd amdvlk ]; - extraPackages32 = with pkgs; [ - driversi686Linux.amdvlk + + extraPackages32 = with pkgs.driversi686Linux; [ + amdvlk ]; }; }