disable amdvlk because of gnome bug, update config

This commit is contained in:
Vinzenz Schroeter 2024-12-21 14:13:01 +01:00
parent 392711e853
commit 906a264118

View file

@ -1,12 +1,19 @@
{ pkgs, ... }:
{ pkgs, config, ... }:
{
config = {
boot.kernelModules = [ "amdgpu" ];
services.xserver.videoDrivers = [ "amdgpu" ];
hardware.graphics = {
extraPackages = with pkgs; [ amdvlk ];
extraPackages32 = with pkgs; [ driversi686Linux.amdvlk ];
hardware = {
graphics.enable = true;
amdgpu = {
opencl.enable = true;
amdvlk = {
# TODO: this creates black borders around GNOME apps
# enable = true;
support32Bit.enable = config.hardware.graphics.enable32Bit;
};
};
};
environment.systemPackages = with pkgs; [ nvtopPackages.amd ];