system/lenovo: fix graphics config
This commit is contained in:
parent
8964b7dbc3
commit
a277ffae67
|
@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue