We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e40feef commit d5e47ebCopy full SHA for d5e47eb
modules/home/services/ollama/default.nix
@@ -11,6 +11,7 @@ let
11
cfg = config.${namespace}.services.ollama;
12
13
amdCfg = osConfig.khanelinix.hardware.gpu.amd;
14
+ hasHardwareConfig = lib.hasAttr "hardware" osConfig.khanelinix;
15
in
16
{
17
options.${namespace}.services.ollama = {
@@ -26,7 +27,7 @@ in
26
27
lib.optionalAttrs cfg.enableDebug {
28
OLLAMA_DEBUG = "1";
29
}
- // lib.optionalAttrs (amdCfg.enable && amdCfg.enableRocmSupport) {
30
+ // lib.optionalAttrs (hasHardwareConfig && amdCfg.enable && amdCfg.enableRocmSupport) {
31
HCC_AMDGPU_TARGET = "gfx1100";
32
HSA_OVERRIDE_GFX_VERSION = "11.0.0";
33
AMD_LOG_LEVEL = lib.mkIf cfg.enableDebug "3";
0 commit comments