From 5664bb78991bffa5f86ad951ebbe95dd414b7c32 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Tue, 4 Jun 2024 21:49:05 +0200 Subject: [PATCH] nixos/open-webui: add example in options --- nixos/modules/services/misc/open-webui.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/misc/open-webui.nix b/nixos/modules/services/misc/open-webui.nix index fad81fb1ee2a..636e4b7e66f4 100644 --- a/nixos/modules/services/misc/open-webui.nix +++ b/nixos/modules/services/misc/open-webui.nix @@ -18,12 +18,14 @@ in stateDir = lib.mkOption { type = types.path; default = "/var/lib/open-webui"; + example = "/home/foo"; description = "State directory of Open-WebUI."; }; host = lib.mkOption { type = types.str; default = "localhost"; + example = "0.0.0.0"; description = '' The host address which the Open-WebUI server HTTP interface listens to. ''; @@ -32,6 +34,7 @@ in port = lib.mkOption { type = types.port; default = 8080; + example = 11111; description = '' Which port the Open-WebUI server listens to. ''; @@ -42,7 +45,7 @@ in default = { }; example = '' { - OLLAMA_API_BASE_URL = "http://localhost:11434"; + OLLAMA_API_BASE_URL = "http://127.0.0.1:11434"; # Disable authentication WEBUI_AUTH = "False"; }