Ollama: Fix env var.

This commit is contained in:
Dmitry Voronin 2025-01-28 13:19:56 +03:00
parent 663976e4e2
commit cc0343e2a5
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -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]";