All checks were successful
Activate Homelab Configuration / rebuild (push) Successful in 39s
24 lines
No EOL
542 B
Nix
24 lines
No EOL
542 B
Nix
{ ... }: {
|
|
services = {
|
|
ollama = {
|
|
enable = true;
|
|
host = "127.0.0.1";
|
|
port = 11434;
|
|
user = "ollama";
|
|
home = "/mnt/data/ollama";
|
|
loadModels = [
|
|
"gemma3n:e4b" # "gemma3n:e2b"
|
|
"qwen3-coder-next:cloud" # "codellama:7b" "starcoder:3b"
|
|
];
|
|
};
|
|
open-webui = {
|
|
enable = true;
|
|
port = 8080;
|
|
environmentFile = "/mnt/data/ollama/.env";
|
|
environment = {
|
|
OLLAMA_BASE_URL = "http://localhost:11434";
|
|
# WEBUI_AUTH = "False";
|
|
};
|
|
};
|
|
};
|
|
} |