2024-12-21 14:13:01 +01:00
|
|
|
{ pkgs, config, ... }:
|
2024-10-26 14:59:00 +02:00
|
|
|
{
|
|
|
|
config = {
|
2024-10-27 12:33:35 +01:00
|
|
|
boot.kernelModules = [ "amdgpu" ];
|
|
|
|
services.xserver.videoDrivers = [ "amdgpu" ];
|
2024-10-26 14:59:00 +02:00
|
|
|
|
2024-12-21 14:13:01 +01:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
};
|
2024-10-26 14:59:00 +02:00
|
|
|
};
|
|
|
|
|
2024-10-27 12:33:35 +01:00
|
|
|
environment.systemPackages = with pkgs; [ nvtopPackages.amd ];
|
2024-10-26 14:59:00 +02:00
|
|
|
};
|
|
|
|
}
|