From a2fd753ff1710fd72017d92cbe6bb615f4491a77 Mon Sep 17 00:00:00 2001 From: chn Date: Wed, 5 Nov 2025 23:06:59 +0800 Subject: [PATCH] modules.services.ollama: fix pull --- modules/services/ollama.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/services/ollama.nix b/modules/services/ollama.nix index 95e34f93..e76cd51b 100644 --- a/modules/services/ollama.nix +++ b/modules/services/ollama.nix @@ -4,7 +4,12 @@ inputs: { type = types.nullOr (types.submodule {}); default = null; }; config = let inherit (inputs.config.nixos.services) ollama; in inputs.lib.mkIf (ollama != null) { - services.ollama = { enable = true; host = "0.0.0.0"; }; + services.ollama = + { + enable = true; + host = "0.0.0.0"; + environmentVariables = { OLLAMA_REGISTRY_MAXSTREAMS = "2"; OLLAMA_EXPERIMENT= "client2"; }; + }; nixos.packages.packages._packages = [ inputs.pkgs.oterm ]; }; }