dotfiles/config/instances/config/ollama.nix

32 lines
651 B
Nix
Raw Normal View History

2024-11-10 01:29:37 -06:00
{instancesFunctions}: let
2025-01-08 19:06:14 -06:00
inherit
(instancesFunctions)
domain0
servicePath
sslPath
sopsPath
;
2024-11-10 01:29:37 -06:00
ollamaLabel = "Ollama";
ollamaName = "ollama";
in {
label = ollamaLabel;
name = ollamaName;
sops = {
path0 = "${sopsPath}/${ollamaName}";
};
subdomain = ollamaName;
paths = {
path0 = "${servicePath}/${ollamaLabel}";
path1 = "/mnt/media/storage/${ollamaName}";
};
ports = {
port0 = 8088; # Open-WebUI (Ollama Front End)
port1 = 11434; # Ollama API
};
ssl = {
cert = "${sslPath}/${ollamaName}.${domain0}/fullchain.pem";
key = "${sslPath}/${ollamaName}.${domain0}/key.pem";
};
}