system/lenovo: fix graphics config
This commit is contained in:
parent
8964b7dbc3
commit
a277ffae67
|
@ -1,16 +1,21 @@
|
||||||
{ pkgs, ... }: {
|
{ pkgs, ... }: {
|
||||||
imports = [ ./hardware-configuration.nix ];
|
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;
|
enable = true;
|
||||||
driSupport = true;
|
enable32Bit = true;
|
||||||
driSupport32Bit = true;
|
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
rocm-opencl-icd
|
|
||||||
amdvlk
|
amdvlk
|
||||||
];
|
];
|
||||||
extraPackages32 = with pkgs; [
|
|
||||||
driversi686Linux.amdvlk
|
extraPackages32 = with pkgs.driversi686Linux; [
|
||||||
|
amdvlk
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue