sid.ovh/hosts/rx4/services/open-webui-oci.nix
sid c2efb19ecf
All checks were successful
Flake check / flake-check (pull_request) Successful in 21s
Build hosts / build-hosts (pull_request) Successful in 32s
update oci images
2026-05-04 17:55:30 +02:00

35 lines
948 B
Nix

{
inputs,
constants,
config,
pkgs,
...
}:
{
imports = [ inputs.synix.nixosModules.open-webui-oci ];
services.open-webui-oci = {
enable = true;
externalUrl = "https://" + constants.services.open-webui-oci.fqdn;
port = 8083;
# environmentFile = config.sops.templates."open-webui-oci/environment".path;
environment = {
# AUDIO_STT_ENGINE = "openai";
# AUDIO_TTS_ENGINE = "openai";
ENABLE_OLLAMA_API = "False";
};
};
# sops = {
# secrets."open-webui-oci/stt-api-key" = { };
# secrets."open-webui-oci/tts-api-key" = { };
# templates."open-webui-oci/environment".content = ''
# AUDIO_STT_OPENAI_API_KEY=${config.sops.placeholder."open-webui-oci/stt-api-key"}
# AUDIO_TTS_OPENAI_API_KEY=${config.sops.placeholder."open-webui-oci/tts-api-key"}
# '';
# };
# HOTFIX
virtualisation.oci-containers.containers.open-webui.extraOptions = [ "--health-cmd=none" ];
}