From cc0343e2a515e067467761c5dbc1e52f7f26910f Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Tue, 28 Jan 2025 13:19:56 +0300 Subject: [PATCH] Ollama: Fix env var. --- config/Ollama.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/config/Ollama.nix b/config/Ollama.nix index 20c7033..f7978ec 100644 --- a/config/Ollama.nix +++ b/config/Ollama.nix @@ -13,6 +13,7 @@ in imports = [ "${inputs.nixpkgsMaster}/nixos/modules/services/misc/ollama.nix" ]; config = lib.mkIf cfg.enable { + environment.variables.OLLAMA_MODEL = cfg.primaryModel; services.ollama = { enable = true; host = "[::1]";