system/lenovo: fix graphics config

This commit is contained in:
outfoxxed 2025-02-28 17:51:51 -08:00
parent 8964b7dbc3
commit a277ffae67
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E

View file

@ -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
];
};
}