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 = { config = {
boot.kernelModules = [ "amdgpu" ]; boot.kernelModules = [ "amdgpu" ];
services.xserver.videoDrivers = [ "amdgpu" ]; services.xserver.videoDrivers = [ "amdgpu" ];
hardware.graphics = { hardware = {
extraPackages = with pkgs; [ amdvlk ]; graphics.enable = true;
extraPackages32 = with pkgs; [ driversi686Linux.amdvlk ]; 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 ]; environment.systemPackages = with pkgs; [ nvtopPackages.amd ];