2024-10-11 23:27:07 +03:00
|
|
|
{
|
2024-12-18 09:40:11 +03:00
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
cfg = config.module.amd.compute;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
nixpkgs.config.rocmSupport = true;
|
|
|
|
systemd.tmpfiles.rules = [ "L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}" ];
|
|
|
|
hardware.graphics.extraPackages = with pkgs; [ rocmPackages.clr.icd ];
|
|
|
|
};
|
2024-03-20 22:54:40 +03:00
|
|
|
}
|