Deploy Hermes agent on Vega with Matrix gateway and Nova model provider #309
Labels
No labels
area:authentication
area:flake-utilities
area:performance
area:tbd
host:chaos
host:cosmos
host:electra
host:fleet
host:lena
host:lyra
host:mass-storage
host:media1
host:nimmog-de
host:nova
host:pangolin
host:pangolin-vps
host:phone
host:router
host:vega
investigation
phase:cutover
phase:deploy
phase:mcp
phase:module
phase:packaging
phase:prep
phase:validation
priority:high
priority:medium
project:attic-postgres-lyra-rollout
project:auto-update-reliability
project:auto-update-remediation
project:declarative-purity-cleanup
project:external-review
project:fleet-boundary-cleanup
project:host-facts-refactor
project:lyra-nixos-deploy
project:lyra-service-stack-migration
project:nebula-mesh-network
project:nix-idioms-hygiene
project:nixos-build-deployment-pipeline
project:security-hardening
project:service-stack-migration
project:vega-sillytavern-cutover
project:wiki-rebuild
repo:numtide/flake-utils
repo:numtide/nix-auth
repo:numtide/nixos-passthru-cache
repo:numtide/nix-relay
service:auto-update
service:gitlab
service:hermes
service:mem0
service:nix
service:sillytavern
service:slskd
service:synthseek
service:tdarr
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
nimmo/nixos-config#309
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Deploy Hermes Agent as a background daemon on Vega.
Scope & Objectives
Verification
Update
Authentication Fix (
key_env):HTTP 401: Invalid API key provided: Hermes treatsprovider: "custom"endpoints without explicitkey_envas keyless local endpoints and substitutesBearer no-key-required.defaultKeyEnv = "CUSTOM_API_KEY"option inmodules/services/hermes.nixand setkey_envonmodel,providers, and default model aliases.Fleet MCP Servers Registration:
modules/mcp/default.nixwithhermesMcpServersandhermesEnv.hermesblock tomodules/mcp/redview.nix.services.hermes-agent.mcpServers = mcp.hermesMcpServersinmodules/services/hermes.nixunderenableMcp(defaulting totrue).KIWIFS_MCP_TOKEN,NAVIDROME_MCP_TOKEN,TRILIUM_ETAPI_TOKEN,SYNTHSEEK_MCP_API_KEY,REDVIEW_MCP_API_KEY) intosops.templates."hermes-env".group = "hermes"; mode = "0440"access to MCP secrets for stdio launchers (beszel,karakeep,pangolin).beszel,bookstack,forgejo,karakeep,kiwifs,navidrome,nixos,pangolin,redview,synthseek,trilium) evaluate cleanly into Hermes'ssettings.mcp_servers.nix flake check) passed cleanly.Web search support via native SearXNG has been implemented and validated:
SearXNG Service Module (
modules/services/searxng.nix):services.searxon port 8888, bound to0.0.0.0.nebula.meshinterface (and accessible on loopback), blocked on WAN interfaces.settings.search.formats = [ "html" "json" ])./var/lib/searx/searx-envviasearx-secret-key.serviceif not provided via SOPS/environment file, keeping secrets out of the world-readable/nix/store.services.serviceFailureMonitor.services.Hermes Configuration (
modules/services/hermes.nix):enableWebSearch(default true) andsearxngUrl(defaulthttp://127.0.0.1:8888).SEARXNG_URLintohermes-envSOPS template.settings.web.search_backend = "searxng"for Hermes agent.Vega Deployment (
hosts/vega/default.nix):../../modules/services/searxng.nixand setnixosConfig.searxng.enable = true;.Validation:
nix flake checkpassed cleanly across all host configurations.just test-remote vegaor remote switch).Deployment & Verification Summary
Auto-Update & Activation on Vega:
e2b4b966aa20a72cbccfd917eb83e6ceb7097751, Vega's schedulednixos-auto-update.servicecycle triggered at 20:07:44 BST./nix/store/1ivhphcf7ypxi7qymg2b0rccah2wcs2p-nixos-system-vega-26.11.20261008.8edc0c7via detached switch helpernixos-auto-update-switch-vega.e2b4b966aa20a72cbccfd917eb83e6ceb7097751.Hermes Agent Gateway (
hermes-agent.service):ExecStartPrecompleted cleanly with exit code 0/SUCCESS (directory permissions handled viachmod -R u+wbefore cleanup).PID 2096070)./srv/services/hermes/profile./srv/services/hermes/.hermes/skills->/srv/services/hermes/profile/skills/srv/services/hermes/.hermes/SOUL.md->/srv/services/hermes/profile/SOUL.md/srv/services/hermes/.hermes/distribution.yaml->/srv/services/hermes/profile/distribution.yamlbeszel-mcp,karakeep-mcp,mcp-nixos,mcp-pangolin).SearXNG Service (
searx.service):127.0.0.1:8888and successfully serving search queries.Host Health: