nix/module/AmdCompute.nix

22 lines
456 B
Nix
Raw Permalink Normal View History

{
pkgs,
lib,
config,
...
}:
with lib;
let
cfg = config.module.amd.compute;
in
{
options = {
module.amd.compute.enable = mkEnableOption "Enable AMD Rocm support i.e. for Blender.";
};
2024-06-25 04:04:39 +03:00
config = mkIf cfg.enable {
nixpkgs.config.rocmSupport = true;
2024-10-14 04:51:19 +03:00
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
}