Files
nix-config/modules/system-settings/amd-gpu.nix
Weckyy702 e34b5ecce3 Update to (somewhat?) dendritic pattern
Heavily inspired by https://github.com/Doc-Steve/dendritic-design-with-flake-parts.

> Atomic commits? Never heard of them!
2026-03-15 15:04:47 +01:00

19 lines
373 B
Nix

{
flake.modules.nixos.amd-gpu = { pkgs, ... }: {
environment.systemPackages = with pkgs; [
rocmPackages.amdsmi
];
boot.kernelModules = [ "kvm-amd" ];
hardware.graphics = {
enable = true;
extraPackages = [ pkgs.rocmPackages.clr.icd ];
};
hardware.amdgpu = {
initrd.enable = true;
opencl.enable = true;
};
};
}