add ollama and safe mode

This commit is contained in:
Satria 2026-03-03 17:40:06 +07:00
commit 77e83981d7
4 changed files with 43 additions and 28 deletions

View file

@ -1,3 +1,19 @@
{ ... }: {
services = {
ollama = {
enable = true;
host = "127.0.0.1";
port = 11434;
# loadModels = [ "gemma3n:e4b" "gemma3n:e2b" ];
};
open-webui = {
enable = true;
port = 8080;
environment = {
OLLAMA_BASE_URL = "http://localhost:11434";
WEBUI_AUTH = "False";
};
};
};
}