From a277ffae67efccc34237db7f42fc0f3c535a71fe Mon Sep 17 00:00:00 2001 From: outfoxxed <outfoxxed@outfoxxed.me> Date: Fri, 28 Feb 2025 17:51:51 -0800 Subject: [PATCH] system/lenovo: fix graphics config --- systems/lenovo/hardware.nix | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) 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 ]; }; }