Files
nix/hosts/battleship/gpu-configuration.nix
Gustavo "Guz" L. de Mello 8a07766269 feat: update
2024-07-21 11:11:37 -03:00

30 lines
493 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
];
};
};
}