[Hardware/AMD+Cachix] use ROCm cache only if AMD GPU hardware is enabled

This commit is contained in:
Antoine Viallon 2024-05-25 13:43:08 +02:00
parent 937225bbfb
commit 81aa383877
Signed by: aviallon
GPG key ID: 186FC35EDEB25716

View file

@ -63,6 +63,9 @@ in {
"/dev/dri/renderD128?"
];
nix.settings.substituters = [ "https://nixos-rocm.cachix.org" ];
nix.settings.trusted-public-keys = [ "nixos-rocm.cachix.org-1:VEpsf7pRIijjd8csKjFNBGzkBqOmw8H9PRmgAq14LnE=" ];
nixpkgs.overlays = [(final: prev: {
# Overlay Blender to use the HIP build if we have a compatible AMD GPU
blender = final.blender-hip;