From 4b9de23515fc6240c1c0a4fbc42ab2ec0e7978e3 Mon Sep 17 00:00:00 2001 From: shivaraj-bh Date: Fri, 31 Jan 2025 15:14:51 +0530 Subject: [PATCH] nixos/open-webui: quote `services.open-webui.host` in start script --- nixos/modules/services/misc/open-webui.nix | 2 +- nixos/tests/open-webui.nix | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/misc/open-webui.nix b/nixos/modules/services/misc/open-webui.nix index 37cf05fe012b..89c2f34b6699 100644 --- a/nixos/modules/services/misc/open-webui.nix +++ b/nixos/modules/services/misc/open-webui.nix @@ -97,7 +97,7 @@ in } // cfg.environment; serviceConfig = { - ExecStart = "${lib.getExe cfg.package} serve --host ${cfg.host} --port ${toString cfg.port}"; + ExecStart = "${lib.getExe cfg.package} serve --host \"${cfg.host}\" --port ${toString cfg.port}"; EnvironmentFile = lib.optional (cfg.environmentFile != null) cfg.environmentFile; WorkingDirectory = cfg.stateDir; StateDirectory = "open-webui"; diff --git a/nixos/tests/open-webui.nix b/nixos/tests/open-webui.nix index 27f913dbffd5..91cd52843c11 100644 --- a/nixos/tests/open-webui.nix +++ b/nixos/tests/open-webui.nix @@ -15,6 +15,7 @@ in { services.open-webui = { enable = true; + host = ""; environment = { # Requires network connection RAG_EMBEDDING_MODEL = "";