diff --git a/modules/services/open-webui.nix b/modules/services/open-webui.nix index 9ca4aad..1b2bbb5 100644 --- a/modules/services/open-webui.nix +++ b/modules/services/open-webui.nix @@ -36,6 +36,7 @@ in environment = lib.mkOption { type = lib.types.attrsOf lib.types.str; description = "Extra environment variables. See https://docs.openwebui.com/getting-started/env-configuration"; + default = {}; example = '' { WEBUI_NAME = "SelfHostBlocks"; @@ -166,7 +167,7 @@ in SCARF_NO_ANALYTICS = "True"; ENABLE_VERSION_UPDATE_CHECK = "False"; - }; + } // cfg.environment; }; systemd.services.open-webui.path = [ diff --git a/modules/services/open-webui/docs/default.md b/modules/services/open-webui/docs/default.md index d1b08ac..9e0f32c 100644 --- a/modules/services/open-webui/docs/default.md +++ b/modules/services/open-webui/docs/default.md @@ -88,14 +88,12 @@ Integrating with the ollama service is done with: ```nix { - services.open-webui = { + shb.open-webui = { environment.OLLAMA_BASE_URL = "http://127.0.0.1:${toString config.services.ollama.port}"; }; } ``` -Notice we're using the upstream service here `services.open-webui`, not `shb.open-webui`. - ## Backup {#services-open-webui-usage-backup} Backing up Open-Webui using the [Restic block](blocks-restic.html) is done like so: