hosts/main: expose ollama server in environment variable

This commit is contained in:
Wroclaw 2024-12-15 06:41:08 +01:00
parent de3e8a3340
commit 4968fc8b5e

View file

@ -1,5 +1,6 @@
{ {
inputs, inputs,
config,
pkgs, pkgs,
self, self,
... ...
@ -77,6 +78,9 @@
acceleration = "cuda"; acceleration = "cuda";
host = "0.0.0.0"; host = "0.0.0.0";
}; };
environment.sessionVariables = {
OLLAMA_HOST = "127.0.0.1:${builtins.toString config.services.ollama.port}";
};
system.stateVersion = "23.05"; system.stateVersion = "23.05";
}; };