ollama accessable from everywhere

This commit is contained in:
Lennart J. Kurzweg (Nx2)
2025-08-27 21:05:26 +02:00
parent 35c5760f50
commit efe96374de

View File

@@ -4,7 +4,7 @@
package = if hyper.nvidia.enable then pkgs.ollama-cuda else pkgs.ollama; package = if hyper.nvidia.enable then pkgs.ollama-cuda else pkgs.ollama;
enable = true; enable = true;
acceleration = lib.mkIf hyper.nvidia.enable "cuda"; acceleration = lib.mkIf hyper.nvidia.enable "cuda";
host = if hyper.host == "NxACE" then "0.0.0.0" else "127.0.0.1"; host = "0.0.0.0";
port = 11434; port = 11434;
environmentVariables = { environmentVariables = {
OLLAMA_ORIGINS = "*"; OLLAMA_ORIGINS = "*";