nixos/hosts/gunter/ollama.nix
Torjus Håkestad 2c139f3b1e
All checks were successful
Run nix flake check / flake-check (push) Successful in 1m50s
Periodic flake update / flake-update (push) Successful in 1m16s
Disable open-webui due to build failure
2025-02-08 11:28:32 +01:00

21 lines
520 B
Nix

{ pkgs, lib, ... }:
{
services.ollama = {
enable = true;
acceleration = "cuda";
};
services.open-webui = {
# enable = true;
enable = lib.warn "Open WebUI is disabled" false;
environment = {
VECTOR_DB = "pgvector";
PGVECTOR_DB_URL = "postgresql://openwebui:openwebui@pgdb1.home.2rjus.net:5432/openwebui";
DO_NOT_TRACK = "True";
SCARF_NO_ANALYTICS = "True";
OLLAMA_API_BASE_URL = "http://127.0.0.1:11434";
WEBUI_AUTH = "False";
};
port = 11444;
};
}