From 941c51884d34d8bb7fa3067cafc3dcaebe5b8edc Mon Sep 17 00:00:00 2001 From: Lukas Date: Fri, 7 Nov 2025 21:40:33 +0100 Subject: [PATCH] added ollama context length explicitly --- modules/services/ollama.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/services/ollama.nix b/modules/services/ollama.nix index da3bb89..6e07a54 100644 --- a/modules/services/ollama.nix +++ b/modules/services/ollama.nix @@ -5,6 +5,9 @@ enable = true; package = pkgs-unstable.ollama; acceleration = "cuda"; + environmentVariables = { + OLLAMA_CONTEXT_LENGTH="32000"; + }; }; systemd.services.ollama.serviceConfig = {