fix(#2422): honor the service-mode host default

This commit is contained in:
Rod Boev 2026-07-02 14:19:24 -04:00 committed by nesquena-hermes
parent d77d956380
commit 5bd940a49b
2 changed files with 2 additions and 2 deletions

View file

@ -427,7 +427,7 @@ services.hermes-webui = {
};
```
Keep the module default host at `127.0.0.1`. Set `host = "0.0.0.0"` only when you also provide auth, for example `HERMES_WEBUI_PASSWORD` via `environmentFiles`.
The module defaults to `0.0.0.0` for a network-reachable system service. Pair that with auth, for example `HERMES_WEBUI_PASSWORD` via `environmentFiles`, or override `host = "127.0.0.1"` when you want loopback-only access.
You can also set `agent.package` instead of `agent.dir` when you are using a compatible Hermes Agent package layout. The module derives `HERMES_WEBUI_AGENT_DIR` from `<pkg>/share/hermes-agent` and sets `HERMES_WEBUI_PYTHON` from the package's `passthru.hermesVenv` interpreter so bootstrap can use agent dependencies without creating a local `.venv`.

View file

@ -113,7 +113,7 @@ in
host = lib.mkOption {
type = lib.types.str;
default = "127.0.0.1";
default = "0.0.0.0";
description = "Value for HERMES_WEBUI_HOST.";
};