30 lines
803 B
Nix
30 lines
803 B
Nix
{
|
|
inputs,
|
|
constants,
|
|
config,
|
|
...
|
|
}:
|
|
|
|
{
|
|
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";
|
|
# };
|
|
};
|
|
|
|
# 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"}
|
|
# '';
|
|
# };
|
|
}
|