hosts/main: expose ollama server in environment variable
This commit is contained in:
parent
de3e8a3340
commit
4968fc8b5e
1 changed files with 4 additions and 0 deletions
|
@ -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";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue