Loading
nixos/ollama: make `rocmOverrideGfx` backward compatible
The initial version of `rocmOverrideGfx` incorrectly used `lib.mkIf` in an attempt to prevent interference with previous uses of `environmentVariables.HSA_OVERRIDE_GFX_VERSION`. However, the effect was actually to simply erase existing definitions of `HSA_OVERRIDE_GFX_VERSION` until `rocmOverrideGfx` was set, which was the situation I was trying to avoid in the first place. This fixes the bug by switching from `lib.mkIf` to `lib.optionalAttrs`.