Files
nix/hosts/desktop/gpu-configuration.nix
Gustavo "Guz" L. de Mello 3634e47486 fix: amd gpu support
2024-02-21 18:50:31 -03:00

31 lines
550 B
Nix

{ config, pkgs, ... }:
{
imports = [ ];
options.shared.configuration.gpu = { };
config = {
boot.initrd.kernelModules = [ "amdgpu" ];
services.xserver.videoDrivers = [ "amdgpu" ];
environment = {
variables = {
ROC_ENABLE_PRE_VEGA = "1";
};
systemPackages = with pkgs; [
clinfo
];
};
hardware.opengl = {
enable = true;
extraPackages = with pkgs; [
amdvlk
rocmPackages.clr.icd
];
driSupport = true;
driSupport32Bit = true;
};
};
}