modules.system.server.ollama: use var nvidiaEnabled
All checks were successful
check / check (push) Successful in 29s
All checks were successful
check / check (push) Successful in 29s
This commit is contained in:
parent
3bc86778ff
commit
03b8fb2d5d
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ in
|
||||||
services.ollama = {
|
services.ollama = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
acceleration = if config.modules.system.hardware.nvidia.enable then "cuda" else null;
|
acceleration = if nvidiaEnabled then "cuda" else null;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
Loading…
Reference in a new issue