From 4968fc8b5e6c5f64870b4ac6440e8a25c60d6b2f Mon Sep 17 00:00:00 2001 From: Wroclaw Date: Sun, 15 Dec 2024 06:41:08 +0100 Subject: [PATCH] hosts/main: expose ollama server in environment variable --- hosts/main/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hosts/main/default.nix b/hosts/main/default.nix index f6aee98..35d3053 100644 --- a/hosts/main/default.nix +++ b/hosts/main/default.nix @@ -1,5 +1,6 @@ { inputs, + config, pkgs, self, ... @@ -77,6 +78,9 @@ acceleration = "cuda"; host = "0.0.0.0"; }; + environment.sessionVariables = { + OLLAMA_HOST = "127.0.0.1:${builtins.toString config.services.ollama.port}"; + }; system.stateVersion = "23.05"; };