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 = "";