From dafc1ef0fd5162d823d065fcc728797a09677330 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 20 Nov 2026 05:35:23 +0000 Subject: configs/hermes: serve the Webapp, for the host The gateway serves the Webapp, Hermes Desktop in a browser, on port 9120. Bound to 0.0.0.0, so the host can reach it at the guest's address, which needs the dashboard's sign-in: username, password (or its hash) and a token-signing secret, as HERMES_DASHBOARD_BASIC_AUTH_* in hermes.env in the host's xchg, merged into ~/.hermes/.env at boot. --- configs/hermes.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'configs/hermes.nix') diff --git a/configs/hermes.nix b/configs/hermes.nix index f989c06..c80a7b2 100644 --- a/configs/hermes.nix +++ b/configs/hermes.nix @@ -109,6 +109,17 @@ in provider = "claude-subscription-directsdk-experimental"; default = "opus"; }; + # The Webapp (Hermes Desktop in a browser), served by the gateway, for + # the host at http://GUEST:9120. Off loopback, it needs a sign-in: + # put HERMES_DASHBOARD_BASIC_AUTH_USERNAME, ..._PASSWORD (or + # ..._PASSWORD_HASH) and ..._SECRET (32+ random bytes) into hermes.env + # in the host's xchg, which is read at boot. + settings.webapp = { + enabled = true; + host = "0.0.0.0"; + port = 9120; + }; + environmentFiles = [ "/xchg/hermes.env" ]; # The login is in ~/.claude, i.e. in stateDir. extraPackages = [ claude-code ]; }; -- cgit v1.3.1