nixos-configuration/modules/amd-graphics.nix

22 lines
503 B
Nix
Raw Normal View History

{ 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
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
};
}