open-webui: fix giving environment to the upstream service

This commit is contained in:
ibizaman 2025-09-29 21:20:52 +02:00 committed by Pierre Penninckx
parent a0f5497e25
commit b840c404ab
2 changed files with 3 additions and 4 deletions

View file

@ -36,6 +36,7 @@ in
environment = lib.mkOption { environment = lib.mkOption {
type = lib.types.attrsOf lib.types.str; type = lib.types.attrsOf lib.types.str;
description = "Extra environment variables. See https://docs.openwebui.com/getting-started/env-configuration"; description = "Extra environment variables. See https://docs.openwebui.com/getting-started/env-configuration";
default = {};
example = '' example = ''
{ {
WEBUI_NAME = "SelfHostBlocks"; WEBUI_NAME = "SelfHostBlocks";
@ -166,7 +167,7 @@ in
SCARF_NO_ANALYTICS = "True"; SCARF_NO_ANALYTICS = "True";
ENABLE_VERSION_UPDATE_CHECK = "False"; ENABLE_VERSION_UPDATE_CHECK = "False";
}; } // cfg.environment;
}; };
systemd.services.open-webui.path = [ systemd.services.open-webui.path = [

View file

@ -88,14 +88,12 @@ Integrating with the ollama service is done with:
```nix ```nix
{ {
services.open-webui = { shb.open-webui = {
environment.OLLAMA_BASE_URL = "http://127.0.0.1:${toString config.services.ollama.port}"; 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} ## Backup {#services-open-webui-usage-backup}
Backing up Open-Webui using the [Restic block](blocks-restic.html) is done like so: Backing up Open-Webui using the [Restic block](blocks-restic.html) is done like so: