feat(hermes): deploy Hermes agent on Vega with Matrix gateway and live profile sync #311
No reviewers
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
nimmo/nixos-config!311
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/hermes-agent-vega"
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?
Ref #309
Milestone: Hermes Agent Deployment (34)
Summary
Deploys Hermes Agent (
hermes-agent.service) as a background daemon on Vega with a Matrix gateway, native SearXNG meta-search integration, and live bidirectional Git sync to the standalone profile repository (nimmo/hermes).Changes
modules/services/hermes.nix):https://ollama-nova.nimmog.uk/v1forqwen3.6:35b-a3b-q8_0and OpenCode Go fallback).timezoneand timestamps.preStartusing deploy key (secrets/hermes.yaml), dynamically cloningnimmo/hermesto/srv/services/hermes/profileand symlinkingSOUL.md,distribution.yaml, andskills/.hermes@nimmog.uk,Hermes Agent) matching the Hermes Forgejo bot account.beszel-mcp,karakeep-mcp,mcp-nixos,mcp-pangolin).modules/services/searxng.nix):hosts/vega/default.nix):nixosConfig.hermesandnixosConfig.searxng.lib/auto-update-policy.nix):hermes-agentinput under thevegaauto-update tier.README.mdand KiwiFS (pages/projects/nixos-config/hermes.md).Validation & Live Evidence
nix flake checkpasses cleanly across all fleet targets (electra,lena,vega,lyra).hermes-agent.serviceactive and running (PID 2020233)./srv/services/hermes/profilesuccessfully cloned from Forgejo via SSH deploy key at commitc535b28.SOUL.md,distribution.yaml, andskills/symlinks verified.qwen3.6:35b-a3b-q8_0with 128k context), all MCP servers active, Matrix connected.searx.serviceactive and returning JSON search results on port 8888.Automated code review
Reviewed commit:
56133b73e09c2f32d33f67152a429b400164ee31Verdict: Requires further work
Resolve the blocking or important findings and investigate failed deterministic checks before merging.
Overall assessment
Validated the Hermes/SearXNG change set against the checked-out tree and the upstream module/type definitions. Two defects from the initial review hold: the auto-update classification for
hermes-agentcontradicts the shared-module rule stated in the policy file and README, and thewebkey insideservices.hermes-agent.settingsis built withlib.mkIfas a value, which the upstreamdeepConfigType(merge only at the option level,configJson = builtins.toJSON cfg.settings) does not resolve. I dropped the initial review's unguarded-git cloneitem (the unit carriesRestart=always/RestartSec=5, so the stated 'requires a manual restart' impact is not supported) and its resolved questions about searxenvsubst,HERMES_HOME, and${VAR}expansion in MCP headers. Added one new finding: thepreStopscript can exit non-zero whengateway.pidis absent, which defeats its own stated purpose of avoiding a false failure alert, and one documentation gap for the newhermes/git/deploy-keysecret.Blocking findings
None.
Important findings
Nested lib.mkIf inside services.hermes-agent.settings renders an unresolved if-record in config.yaml (modules/services/hermes.nix:193; high confidence)
modules/services/hermes.nix:193 sets
web = lib.mkIf (cfg.searxngUrl != null) { search_backend = "searxng"; };inside thesettingsattrset (line 185). The upstream module (nix/nixosModules.nix:38-47 in the pinned hermes-agent source) typessettingswithdeepConfigType, whosemergeonly folds whole option definitions (lib.foldl' lib.recursiveUpdate { } (map (d: d.value) defs)), and then emitsconfigJson = builtins.toJSON cfg.settings.lib.mkIfused as a value is therefore serialized verbatim, and the generated config in the store contains"web":{"_type":"if","condition":true,"content":{"search_backend":"searxng"}}. Hermes reads this key asweb_cfg.get("search_backend")(hermes_cli/config.py:994 default schema; nous_subscription.py:336web_search_backend = str(web_cfg.get("search_backend") or "")), and nothing in hermes_cli handles a_type/contentrecord.Impact: On Vega the SearXNG web-search backend is never enabled for Hermes:
web.search_backendis absent from the effective config, soweb_searchrouting falls back to the default backend even thoughSEARXNG_URLis exported in the environment. The same pattern is applied correctly 13 lines above for the env var (// lib.optionalAttrs (cfg.searxngUrl != null) { SEARXNG_URL = cfg.searxngUrl; }, line 176).Suggested fix: Build the key conditionally at the attrset level instead of as a value: drop
webfrom the literal and append// lib.optionalAttrs (cfg.searxngUrl != null) { web = { search_backend = "searxng"; }; };to thesettingsattrset, matching theoptionalAttrsstyle already used forSEARXNG_URL.hermes-agent input classified for Vega only although its nixosModule is shared by all four hosts (lib/auto-update-policy.nix:217; high confidence)
The new policy entry (lib/auto-update-policy.nix:215-219) declares
name = "hermes-agent"; inputs = [ "hermes-agent" ]; hosts = [ "vega" ];. flake.nix:141 addsinputs.hermes-agent.nixosModules.defaultto the shared module list passed tomakeNixosSystem, which is used by electra, lena, vega and lyra; the policy file's own header rule states that an input pulled in through a shared module rebuilds every host, and README.md:149 states 'New root flake inputs must also be classified by real consumers inlib/auto-update-policy.nix'. Other shared-module inputs in the same file list all four hosts.Impact: A lock update to
hermes-agentis only rebuilt/validated for Vega, so the evaluation of electra, lena and lyra against the new revision is never build-proved by the auto-update job; an evaluation-time breakage in the new revision surfaces only on the next manual deploy of the other hosts.Suggested fix: List the full consumer set for this input (
hosts = [ "electra" "lena" "vega" "lyra" ];) and update the rationale to say the module is shared, or moveinputs.hermes-agent.nixosModules.defaultout of the shared list in flake.nix:141 into the Vega-only module list so the classification matches the actual consumer set.preStop aborts with a non-zero status when gateway.pid is missing, producing a false failure alert (modules/services/hermes.nix:241; medium confidence)
modules/services/hermes.nix:240-251 sets
systemd.services.hermes-agent.preStopwhose first command ishermes_pid="$(sed -nE '...' "$HERMES_HOME/gateway.pid")"with no existence guard and no|| true. NixOS renders this asExecStop=/nix/store/...-unit-script-hermes-agent-pre-stop/bin/hermes-agent-pre-stop(generated unit line 17), and the generated script starts withset -e; the unit also carriesOnFailure=ntfy-service-failure@%n.service(generated unit line 4). GNU sed exits non-zero when its input file cannot be opened. The gateway removes that file during shutdown (gateway/run.py:19747-19751remove_pid_file()/(get_hermes_home() / "gateway.pid").unlink(missing_ok=True)), i.e. before ExecStop runs. The comment at modules/services/hermes.nix:238-239 states the intent is 'to avoid a false failure alert'.Impact: On a normal stop (including NixOS activation SIGTERM stops) the pid file is typically already gone, so
set -eaborts ExecStop with status 1, the unit enters the failed state andntfy-service-failure@hermes-agent.serviceposts a spurious alert on every redeploy/stop, masking the deliberate stop the comment tries to handle.Suggested fix: Guard the read, e.g.
if [ -f "$HERMES_HOME/gateway.pid" ]; then hermes_pid="$(sed -nE ... )"; else hermes_pid=""; fi(or append|| trueto the command substitution), so the script always exits 0 when there is no live gateway to mark.Suggestions
The diff updates the row to
|hermes/matrix/access-token,hermes/pangolin/api-keyinsecrets/hermes.yaml| modules/services/hermes.nix onvega| ..., butsecrets/hermes.yamlalso gains agit: deploy-key:entry, which modules/services/hermes.nix:119-121 consumes assops.secrets.hermes-git-deploy-key(key = "hermes/git/deploy-key") and uses inGIT_SSH_COMMAND(line 170). Every other secret introduced by this change is listed in the same table.Impact: The repository's secret-ownership table under-documents a new Vega secret, so a future rotation or re-encryption of
hermes/git/deploy-keyhas no documented owner or purpose.Suggested fix: Add
hermes/git/deploy-keyto the row's key list and mention in the description that it is the SSH deploy key used by Hermes' profile/skills git operations.Tests and validation
Questions
hermes-agentpolicy entry: does the auto-update job treathostsas 'hosts whose system closure contains the input' or 'hosts whose evaluation imports the input'? The shared module list at flake.nix:141 makes the second reading apply to all four hosts, but the intended impact statement in the rationale suggests the first; the answer determines whether the fix belongs in lib/auto-update-policy.nix or in flake.nix.web.backendalso be set alongsideweb.search_backendin the Hermes settings, or is the per-capability override alone sufficient for the SearXNG path (upstream nous_subscription.py:447-450 accepts either)?Review limitations
hermes-config.yaml,unit-hermes-agent.service, the pre-start/pre-stop scripts,searx-*.serviceunits, and the pinned hermes-agent and nixpkgs sources) read with the navigation tools; these are build outputs, not files in the checked-out tree, and I did not runnix build,nix flake check, or thescripts/check-*.nixassertions.gateway.pidstill exists when systemd runs ExecStop); the upstream shutdown code removes it, but I could not observe an actual stop on the host.searx-envfile contents, base64 alphabet safety forenvsubst, and file ownership underDynamicUserin the pinned searx module) beyond confirming the units, ordering (Before=searx-init.service,EnvironmentFile=/var/lib/searx/searx-env) and the staticsearxuser/group defined by the pinned nixpkgs module.Diff coverage
README.md: reviewed — included in a context-limited batchflake.lock: reviewed — included in a context-limited batchflake.nix: reviewed — included in a context-limited batchhosts/vega/default.nix: reviewed — included in a context-limited batchlib/auto-update-policy.nix: reviewed — included in a context-limited batchmodules/mcp/default.nix: reviewed — included in a context-limited batchmodules/mcp/redview.nix: reviewed — included in a context-limited batchmodules/services/hermes.nix: reviewed — included in a context-limited batchmodules/services/searxng.nix: reviewed — included in a context-limited batchscripts/check-redview-mcp.nix: reviewed — included in a context-limited batchsecrets/README.md: reviewed — included in a context-limited batchsecrets/hermes.yaml: reviewed — included in a context-limited batchReview metadata
Thank you for the review! Addressed the feedback in commit
592ca54:Unresolved
_type: ifrecord insettings(modules/services/hermes.nix):lib.mkIfinsidesettingswith an attrset-level merge using// lib.optionalAttrs (cfg.searxngUrl != null) { web = { search_backend = "searxng"; }; }, matchingSEARXNG_URL.hermes-agentModule Scope (flake.nix & lib/auto-update-policy.nix):inputs.hermes-agent.nixosModules.defaultout of the shared module list inflake.nixintomodules/services/hermes.nix'simports(following the pattern established byredview).hosts = [ "vega" ];classification inlib/auto-update-policy.nixis strictly accurate.preStopScript Failure on Missinggateway.pid(modules/services/hermes.nix):if [ -f "$HERMES_HOME/gateway.pid" ]; then ... fiaroundgateway.pidinspection so the pre-stop hook always exits cleanly with status 0 even when the daemon has already cleaned up its PID file.Secrets Documentation (secrets/README.md):
hermes/git/deploy-keyto the secret ownership table insecrets/README.md, describing its purpose for Git synchronization with the profile and skills repository.All checks and formatters pass via
nix flake check.Automated code review
Reviewed commit:
592ca549b623e280b266e4a82a584d947f2e37a3Verdict: Requires further work
Resolve the blocking or important findings and investigate failed deterministic checks before merging.
Overall assessment
The new flake input, auto-update policy entry, sops secrets, MCP registry wiring (hermesMcpServers/hermesEnv), firewall port and failure-monitor registration all line up with the checked-out upstream hermes-agent nixosModule and the nixpkgs services.searx module (the searx-secret-key -> searx-init -> searx chain does substitute $SEARX_SECRET_KEY via envsubst, and search.formats = [html json] matches the SearXNG plugin's /search?format=json call). Two areas do not do what the module and README claim: (1) the profile-repo bridge in preStart symlinks SOUL.md, distribution.yaml and skills into ${cfg.stateDir} instead of $HERMES_HOME (${cfg.stateDir}/.hermes), so the synced persona and skills are never loaded and the agent's own skills never reach the repo; (2) the Matrix E2EE knob emits names Hermes never reads (MATRIX_E2EE_MODE, settings.matrix.e2ee_mode). One robustness asymmetry in preStart (unguarded git clone vs. guarded git pull) is also reported. Everything else in the diff evaluated consistently against the supplied module sources.
Blocking findings
preStart links into the bare state directory:
ln -sf "$repo_dir/SOUL.md" "${cfg.stateDir}/SOUL.md"(line 230),distribution.yaml(line 233),ln -sfn "$repo_dir/skills" "${cfg.stateDir}/skills"(line 240), and migrates withcp -rn "${cfg.stateDir}/skills/."(line 237). The upstream module setsenvironment.HERMES_HOME = "${cfg.stateDir}/.hermes"(nix/nixosModules.nix:651 and the native unit'senvironmentblock at line 870-875) and creates${cfg.stateDir}/.hermes/...via tmpfiles (lines 707-713). Hermes resolves these files under HERMES_HOME:hermes_constants.py:407 get_skills_dir() -> get_hermes_home() / "skills", and the upstream docs state the persona file is${services.hermes-agent.stateDir}/.hermes/SOUL.md(website/.../getting-started/nix-setup.md:320, 404).Impact: The advertised bidirectional sync (README: "persona (SOUL.md), model preferences, and custom skills are maintained in the ... repository, synchronized bidirectionally") is inert: the clone at /srv/services/hermes/profile is fetched but nothing under $HERMES_HOME points at it, so the agent runs with its default persona and its own $HERMES_HOME/skills, and skills it authors are never visible to Hermes. The
cp -rnmigration reads${cfg.stateDir}/skills, a path Hermes never writes, so it silently copies nothing.Suggested fix: Target $HERMES_HOME for all three links (${cfg.stateDir}/.hermes/SOUL.md, .hermes/distribution.yaml, .hermes/skills) and migrate from ${cfg.stateDir}/.hermes/skills. Note the upstream activation script already chmods SOUL.md under ${cfg.stateDir}/.hermes, so keep the symlink creation ordered after that (or move it into the module's activation hook) to avoid clobbering it.
Important findings
matrixE2eeMode emits names Hermes never reads; the option is inert (modules/services/hermes.nix:172; medium confidence)
environmentsetsMATRIX_E2EE_MODE = cfg.matrixE2eeMode(line 172) andsettingssetsmatrix.e2ee_mode = cfg.matrixE2eeMode(line 195). Neither name occurs in the hermes-agent source tree; the real switch is the booleanMATRIX_ENCRYPTION(gateway/platforms/matrix.py:12 MATRIX_ENCRYPTION Set "true" to enable E2EE,gateway/platforms/matrix.py:376,gateway/config.py:1443, documented in website/docs/reference/environment-variables.md:401). The config.yaml bridge for thematrix:block (gateway/config.py:1160-1178) handles only require_mention, free_response_rooms, allowed_rooms, auto_thread and dm_mention_threads - never e2ee_mode.Impact:
matrixE2eeModeis dead configuration: settingoptionalorrequiredchanges nothing, and the three-state enum has no counterpart in Hermes (boolean plus a separate MATRIX_DEVICE_ID for key stability). Anyone later enabling E2EE through this option would silently run in plaintext while the README still says "E2EE disabled".Suggested fix: Model it as upstream does: a boolean emitting
MATRIX_ENCRYPTION = "true"/"false"(optionally with a matrixDeviceId -> MATRIX_DEVICE_ID), and dropsettings.matrix.e2ee_mode. If a tri-state is genuinely wanted, document that Hermes cannot express it.The profile clone is the only unguarded git step in preStart; a transient failure leaves the profile repo missing (modules/services/hermes.nix:222; medium confidence)
The first-start branch runs
GIT_SSH_COMMAND="$git_ssh" ${pkgs.git}/bin/git clone "${cfg.gitRepo}" "$repo_dir"with no error guard (line 222), whereas the second branch runsgit -C "$repo_dir" pull --ff-only || true(line 224). The threegit config --globalcalls (lines 218-220) and the symlink/migration block (lines 229-241) follow the same conditional chain, so an aborted clone skips the whole bridge.Impact: The two branches behave differently: if git.nimmog.uk is unreachable on a first start (boot before network-online is really usable, or a Forgejo outage), the clone fails and the profile repo is absent, so no persona/skills bridge is created and the failure monitor reports a degraded agent; on subsequent boots the same outage is tolerated. The asymmetry also makes the intended error policy unclear to reviewers.
Suggested fix: Make the two branches symmetric:
git clone ... || true(or gate the whole git block on a reachability check) and log the failure, so a transient clone failure degrades to "agent runs without its profile repo" rather than aborting preStart.Suggestions
gateway/config.py:1160-1178 bridges only
require_mention,free_response_rooms,allowed_rooms,auto_threadanddm_mention_threadsfrom thematrix:section of config.yaml;dm_auto_threadis read only from the environment (gateway/platforms/matrix.py:515-516 os.getenv("MATRIX_DM_AUTO_THREAD", "false"), documented at matrix.py:23).Impact: The key is written into config.yaml but never consumed; it coincides with Hermes' default (false) so behaviour is unchanged today, but the setting cannot be turned on from Nix as written.
Suggested fix: Emit
MATRIX_DM_AUTO_THREADinservices.hermes-agent.environment(the supported path), or replace the key withdm_mention_threads, which is bridged.Tests and validation
Questions
nimmo/hermesprofile repository, butservices.hermes-agent.settingssets nomodel, and the clone is never installed into$HERMES_HOME/config.yaml(the upstream activation script writes/merges only the Nix-generated config at${cfg.stateDir}/.hermes/config.yaml). How are the README'sqwen3.6:35b-a3b-q8_0primary andopencode-gofallback actually selected at runtime?distribution.yamlis symlinked into the state directory, but in the supplied source Hermes reads it only as a profile-distribution manifest at a profile root (hermes_cli/profile_distribution.py:80 MANIFEST_FILENAME = "distribution.yaml",hermes_cli/profiles.py:507 profile_dir / "distribution.yaml"). Is a Hermes profile intended here, and if so should the clone be placed at$HERMES_HOME/profiles/<name>/rather than linked at the state-dir root?addToSystemPackages = trueis set, which per the upstream module exportsHERMES_HOMEintoenvironment.variablesfor the whole host (nix/nixosModules.nix:651). Is that intended on Vega, where other agent runtimes (Paseo, pi-pangolin, MCP launchers) inherit the host environment?nixosConfig.backup.dataPaths = lib.mkAfter [ cfg.stateDir ]be kept, givenhosts/vega/default.nix:181already declares/srv/servicesandmodules/services/backrest.nix:22filters out any path with a declared parent? It is harmless today; the question is whether it is meant as a per-host safety net for hosts that do not declare the/srv/servicesroot.Review limitations
/nix/store/yjqpq487...), not the lockedb30f95ac4a80d2f6dbe3aa01001b0524314f6d74; the three "name is not recognised by Hermes" findings (MATRIX_E2EE_MODE, e2ee_mode, dm_auto_thread) are based on that earlier tree and would not apply if the newer revision added such bridging.nix flake check,nixos-eval, or thescripts/check-*.nixassertions; I only checked by inspection that the addedregistry.hermesMcpServers.redviewassertion matches the valuemodules/mcp/redview.nixproduces for thehermesoverride branch./srv/services/hermes/profile, whether the agent can actuallygit commit/git pushwith the deploy key, whether the generatedsearx-envsurvives reboot, and whether the Matrix bridge connects are unverified.nimmo/hermesprofile repository were not supplied, so all claims about what the agent loads from it (SOUL.md, skills, model preferences) are inferred from the module and the upstream source.Diff coverage
README.md: reviewed — included in a context-limited batchflake.lock: reviewed — included in a context-limited batchflake.nix: reviewed — included in a context-limited batchhosts/vega/default.nix: reviewed — included in a context-limited batchlib/auto-update-policy.nix: reviewed — included in a context-limited batchmodules/mcp/default.nix: reviewed — included in a context-limited batchmodules/mcp/redview.nix: reviewed — included in a context-limited batchmodules/services/hermes.nix: reviewed — included in a context-limited batchmodules/services/searxng.nix: reviewed — included in a context-limited batchscripts/check-redview-mcp.nix: reviewed — included in a context-limited batchsecrets/README.md: reviewed — included in a context-limited batchsecrets/hermes.yaml: reviewed — included in a context-limited batchReview metadata
Thank you for the detailed feedback! All points have been addressed in commit
0b604e2:Target
$HERMES_HOMEfor Profile Symlinks (modules/services/hermes.nix):preStartto symlinkSOUL.md,distribution.yaml, andskillsdirectly into$HERMES_HOME(${cfg.stateDir}/.hermes) where Hermes actually loads them.$HERMES_HOME/skillsbefore replacing with the symlink.${cfg.stateDir}root.Matrix E2EE & DM Auto-Thread Options (modules/services/hermes.nix):
matrixE2eeModeenum withmatrixEncryptionboolean, settingMATRIX_ENCRYPTION = "false"in the environment (matching upstream's supported variable).dm_auto_threadande2ee_modekeys fromsettings.matrix.MATRIX_DM_AUTO_THREAD = "false"in the environment.Guarded Initial Clone (modules/services/hermes.nix):
|| { echo "warning: initial clone of ... failed"; }around the initialgit cloneso a transient network failure does not abort unit preStart, making it symmetric withgit pull.Declarative Model & Aliases Settings (modules/services/hermes.nix):
model,providers, andmodel_aliasesinservices.hermes-agent.settingsso the primary model (qwen3.6:35b-a3b-q8_0) and fallback (opencode-go) are explicitly managed and reproducible in NixOS.All checks verified with
nix flake check.Automated code review
Reviewed commit:
0b604e25de2148529a0b60b6eb99713d4bf51bcdVerdict: Requires further work
Resolve the blocking or important findings and investigate failed deterministic checks before merging.
Overall assessment
The supplied changes add a Vega-only Hermes service module, a SearXNG service module, host enablement, a new
hermes-agentflake input plus its auto-update tier, MCP-registry additions (hermesMcpServers,hermesEnv, theredview.hermesentry) and a matching new flake-check assertion. I verified the new assertion inscripts/check-redview-mcp.nixagainst the values produced bymodules/mcp/redview.nix(headers."X-Api-Key" = "\${" + tokenEnvVar + "}") and thes ? hermesbranch inmodules/mcp/default.nix: both sides evaluate to{url; enabled = true; headers."X-Api-Key" = "${REDVIEW_MCP_API_KEY}"}, so that check is consistent.hermesEnvonly emitsVAR=placeholderlines for servers that carry bothtokenEnvVarandsecretName, and every such server module (trilium, kiwifs, synthseek, navidrome, redview) defines that key in its ownsopsSecrets, whichmodules/services/hermes.nixre-adds withgroup = "hermes", so no undefinedconfig.sops.placeholder.*lookup is introduced.secrets/hermes.yaml's new keys match thekey =paths in the new module and thesecrets/README.mdrow, and.sops.yamlscopes that file tovegaplus admin keys. The new tier inlib/auto-update-policy.nixis covered by therootInputsderivation inflake.nix(line 284), so the input is classified. Remaining reportable items are an evidence gap mandated by AGENTS.md and two cross-module coupling/duplication concerns inside the changed files; behaviours of the pinnedhermes-agentnixosModule and of the nixpkgsservices.searxmodule are not in the supplied material and are raised only as questions.Blocking findings
None.
Important findings
The change registers a new group (
name = "hermes-agent"; inputs = [ "hermes-agent" ]; hosts = [ "vega" ]) andflake.nixaddshermes-agentto the flake's input argument set (flake.nix diff, alongsiderootInputs = builtins.attrNames (builtins.removeAttrs inputs [ "self" ])at line 284), so the updater treats it as a live producer input rather than a pinned one. AGENTS.md line 43 states: "For multi-host or auto-update changes, record one genuine deployment and a no-op follow-up before closing the issue." The supplied material contains no record of a no-op follow-up for this new tier.Impact: The producer-side behaviour of the new tier is untested for the case that matters most to a newly classified input: a scheduled cycle with no upstream change. If the tier is mis-scoped, the first symptom is a repeated rebuild of Vega, a held-back input, or a partial-update notification for the other three hosts - none of which
nix flake checkcan detect.Suggested fix: Before closing the issue, record the second half of the documented rollout evidence: one genuine deployment plus a subsequent no-op auto-update observation (e.g.
just auto-update-last-runafter a scheduled cycle with no input change), and confirm thehermes-agenttier is a no-op on electra, lena and lyra.Suggestions
Hermes' SearXNG URL default duplicates the SearXNG port option instead of deriving from it (modules/services/hermes.nix:98; medium confidence)
searxngUrldefaults to the literal"http://127.0.0.1:8888"and is fed to bothSEARXNG_URL(line 178) andweb.search_backend = "searxng"(line 223). The newmodules/services/searxng.nixexposes the same value only through its own independent optionsport(line 17, default 8888) andbindAddress(line 22, default0.0.0.0), andhosts/vega/default.nixenables both withnixosConfig.hermes = { enable = true; }andnixosConfig.searxng.enable = truewithout relating them. Nothing in the changed files asserts the two agree.Impact: Overriding
nixosConfig.searxng.portorbindAddressleaves Hermes pointed at a dead listener; the configuration still evaluates and both services still start, so the break is silent at runtime rather than caught bynix flake check. The same coupling also holds whennixosConfig.searxng.enable = falsewhile Hermes stays enabled.Suggested fix: Single-source the value: default
searxngUrlfrom the SearXNG module (e.g."http://127.0.0.1:${toString config.nixosConfig.searxng.port}"), or add an evaluation-time assertion inmodules/services/hermes.nixthatcfg.searxngUrlmatches the enablednixosConfig.searxngport/bindAddress so a mismatch fails at evaluation.preStop derives the gateway paths from $HERMES_HOME while preStart derives them from cfg.stateDir (modules/services/hermes.nix:282; medium confidence)
preStartdeliberately avoids the environment and hardcodes the path (hermes_home="${cfg.stateDir}/.hermes", line 236, used formkdir -pand every symlink).preStop(lines 282-290) instead reads and writes$HERMES_HOME/gateway.pidand$HERMES_HOME/.gateway-planned-stop.json. Theservices.hermes-agent.environmentblock this module contributes (lines 166-179) sets only HERMES_TIMEZONE, MATRIX_, GIT_ and SEARXNG_URL; noHERMES_HOMEappears in the changed files. The unit is also registered for failure monitoring at line 302 (services.serviceFailureMonitor.services = lib.mkAfter [ "hermes-agent" ]), and the module already relies on upstream-suppliedEnvironmententries elsewhere (Environment = [ "MESSAGING_CWD=" ]clearing a deprecated upstream assignment).Impact: The planned-stop marker is only correct if the pinned upstream module exports
HERMES_HOMEwith exactly the valuepreStartuses. If it does not,$HERMES_HOMEexpands empty, the guard tests/gateway.pid, no marker is written, and the stated purpose of the block - suppressing a false alert when NixOS activation stops the service with SIGTERM - is not met; everynixos-rebuild/just teston Vega would then raise an ntfy failure alert forhermes-agent.service. This cannot be confirmed from the supplied material.Suggested fix: Make the path single-sourced by construction: interpolate
cfg.stateDirintopreStopexactly aspreStartdoes at line 236 (e.g.hermes_home="${cfg.stateDir}/.hermes"at the top of the preStop script), rather than depending on an inherited shell variable. Confirm the resolved value on Vega withsystemctl show hermes-agent -p Environment.Tests and validation
Questions
hermes-agentnixosModule exportHERMES_HOMEintohermes-agent.service's environment, and does it equal${cfg.stateDir}/.hermesthatpreStartcreates at line 236? The upstream module (inputs.hermes-agent.nixosModules.default) is not in the supplied material.config.yamlmcp_serversschema expand${VAR}inside header values at request time?modules/mcp/default.nixemitsAuthorization = "Bearer \${VAR}"andmodules/mcp/redview.nixemitsX-Api-Key = "\${REDVIEW_MCP_API_KEY}"for Hermes, whereas the OpenCode entries use the{env:VAR}form; only the redview shape is asserted byscripts/check-redview-mcp.nix, which checks the generated value, not its runtime expansion.workingDirectory(default${cfg.stateDir}/workspace, passed at line 181) andstateDir? The suppliedpreStartcreates only$hermes_homeand$repo_dirvia clone.secret_key = "$SEARX_SECRET_KEY"(searxng.nix line 79) expanded by the nixpkgsservices.searxservice from itsenvironmentFile, or is the literal string written into the settings file? The nixpkgs module is not supplied, and the generated value is written separately at line 60.services.searxthe intended (SearXNG-backed) nixpkgs module, and does it define thesearx-init.serviceunit thatsearxng.nixlines 49-50 and 67-68 order against, plus asearxuser forUser = "searx"/StateDirectory = "searx"? The option name, README wording and unit names disagree on whether this is SearxNG or legacy Searx.Review limitations
hermes-agentflake input (inputs.hermes-agent.nixosModules.default) is not present in the supplied material, so its option names (mcpServers,extraDependencyGroups,stateDir,settings,addToSystemPackages), the user/group it creates, its unit name, and anyHERMES_HOME/preStop/Environmentdefaults it contributes could not be inspected.services.searxmodule is not supplied, soenvironmentFile,settings, thesearx-initunit, thesearxuser, and whether$SEARX_SECRET_KEYis expanded could not be verified.nix flake check,just test, and any live Vega canary are not independently confirmed here. The pull-request description was not supplied in this pass, so the evidence-gap finding is stated only against the material provided.modules/profiles/ai-agents.nixline 37sops.secrets = mcp.sopsSecrets;) were read only as needed to assess thegroup = "hermes"/mode = lib.mkForce "0440"interaction at hermes.nix lines 132-140.home-managerinput still resolves to a node whosenixpkgsfollows the root nixpkgs, and the newhermes-agentnode's sub-inputs (flake-parts,home-manager,npm-lockfile-fix,pyproject-build-systems,pyproject-nix,uv2nix) all followhermes-agent's nixpkgs, which follows the root; no lock-entry regression was demonstrated.pages/projects/nixos-config/hermes.md) is not part of this checkout, so documentation claims about Hermes could not be cross-checked there.Diff coverage
README.md: reviewed — included in a context-limited batchflake.lock: reviewed — included in a context-limited batchflake.nix: reviewed — included in a context-limited batchhosts/vega/default.nix: reviewed — included in a context-limited batchlib/auto-update-policy.nix: reviewed — included in a context-limited batchmodules/mcp/default.nix: reviewed — included in a context-limited batchmodules/mcp/redview.nix: reviewed — included in a context-limited batchmodules/services/hermes.nix: reviewed — included in a context-limited batchmodules/services/searxng.nix: reviewed — included in a context-limited batchscripts/check-redview-mcp.nix: reviewed — included in a context-limited batchsecrets/README.md: reviewed — included in a context-limited batchsecrets/hermes.yaml: reviewed — included in a context-limited batchReview metadata
Implemented the review suggestions in commit
387d203:options.nixosConfig.hermes.searxngUrlnow dynamically defaults to"http://127.0.0.1:${toString config.nixosConfig.searxng.port}"whenconfig.nixosConfig ? searxng, falling back tohttp://127.0.0.1:8888.hermes_home="${cfg.stateDir}/.hermes"at the top ofpreStop, mirroringpreStartand eliminating dependencies on$HERMES_HOME.AGENTS.md.Flake evaluation and formatting checks passed cleanly (
treefmt-checkand full flake check passed). Pushing the commit now to trigger the next review run.Automated code review
Reviewed commit:
387d203adca1f92c226063b27b7f0348b0afed55Verdict: Ready to merge
No blocking or important findings were retained, and deterministic checks passed. Suggestions remain advisory.
Overall assessment
The Hermes/SearXNG wiring is internally consistent across the changed files: the new
hermes-agentroot input is declared inflake.nixand added to the flake's output argument set, and it is classified inlib/auto-update-policy.nixas required by the README rule at README.md:149 ("New root flake inputs must also be classified by real consumers"); the re-keyedflake.lockentries (flake-parts/flake-parts_2/flake-parts_3,home-manager/home-manager_2, root mapping"home-manager": "home-manager_2") keep every existing consumer pointing at a lock entry whosenixpkgspath still resolves to the root nixpkgs;secrets/hermes.yamlis covered by the vega-scoped rule in.sops.yamland the three keys it adds match the threesops.secretsentries inmodules/services/hermes.nix; the newregistry.hermesMcpServers.redviewassertion inscripts/check-redview-mcp.nix:50matches the literal${REDVIEW_MCP_API_KEY}produced bymodules/mcp/redview.nix:44, andhermesEnvsupplies that variable through thehermes-envtemplate, which systemd reads as root, so no template ownership change is needed. The two findings are latent defects in the new modules: anlib.mkIfapplied to the value of asystemd.services.<name>assignment, and asearxngUrldefault that keys on module presence rather than on the searxng module's ownenable/bindAddressoptions. Everything else I could not decide from supplied material is listed as a question.Blocking findings
None.
Important findings
None.
Suggestions
lib.mkIf guards the value of systemd.services.searx-secret-key, so the disabled branch still emits an empty unit (modules/services/searxng.nix:47; medium confidence)
modules/services/searxng.nix:47writessystemd.services.searx-secret-key = lib.mkIf (cfg.environmentFile == null) { ... }.systemd.servicesis an attrsOf-submodule option, solib.mkIf false {...}still assignssearx-secret-key = {}and therefore still creates the attribute;searx-secret-keyis defined nowhere else in the repository (grep over the checkout returns only this module and thewantedBy/after/requiresreferences at lines 49-50 and 67-68), so the generated unit would carry noscript/ExecStart. Vega currently leavesnixosConfig.searxng.environmentFileat itsnulldefault (hosts/vega/default.nix:272only setsenable = true), so the enabled branch is taken today and this is latent.Impact: If any host ever sets
nixosConfig.searxng.environmentFile, the configuration would emit an ExecStart-lesssearx-secret-key.serviceinstead of omitting the generator, i.e. a spurious unit rather than no unit. (The same pattern at line 66 is harmless forsearx-init, since that unit is expected to come from the upstream service module and would merge with the empty assignment.)Suggested fix: Guard the declaration rather than its value, e.g.
config = lib.mkIf cfg.enable [ (lib.mkIf (cfg.environmentFile == null) { systemd.services.searx-secret-key = { ... }; systemd.services.searx-init = { ... }; }) ]vialib.mkMerge, so no assignment tosystemd.services.searx-secret-keyexists when the generator is not wanted.Hermes searxngUrl default keys on module presence, not on searxng.enable or bindAddress (modules/services/hermes.nix:99; medium confidence)
modules/services/hermes.nix:99-102defaultssearxngUrlto"http://127.0.0.1:${toString config.nixosConfig.searxng.port}"guarded only byconfig.nixosConfig ? searxng, falling back to a hardcoded"http://127.0.0.1:8888". The searxng module introduced in the same change declaresoptions.nixosConfig.searxng.enable(modules/services/searxng.nix:13) andbindAddress(modules/services/searxng.nix:21, default"0.0.0.0"), and wraps its wholeconfigblock inlib.mkIf cfg.enable(line 46); neither is consulted by the default.hosts/vega/default.nix:272setsenable = true, so Vega itself is consistent today.Impact: A host that imports
modules/services/searxng.nixwithenable = false, or that overridesbindAddress, would still receiveSEARXNG_URLand theweb.search_backend = "searxng"settings block (modules/services/hermes.nix:181and:225are gated only oncfg.searxngUrl != null) pointing at an address with nothing listening, silently mis-configuring Hermes web search.Suggested fix: Gate the default on
config.nixosConfig.searxng.enable(returningnullwhen disabled, which already suppresses bothSEARXNG_URLand thewebblock through the existingoptionalAttrs), and build the host part fromconfig.nixosConfig.searxng.bindAddressinstead of hardcoding127.0.0.1.Tests and validation
Questions
services.searx?modules/services/searxng.nix:71setsservices.searx.enable,settings.server.*andenvironmentFile, and orders againstsearx-init.service(lines 49-50, 67-68), which is not defined anywhere in this repository. If that option or unit no longer exists in nixpkgs-unstable, evaluation of Vega fails andscripts/check-service-failure-monitor.nix(which readsconfig.systemd.services.searxfor the watched name added atmodules/services/searxng.nix:96) would also fail.$SEARX_SECRET_KEYfrom the process environment?modules/services/searxng.nix:79puts the literal string"$SEARX_SECRET_KEY"intoservices.searx.settings.server.secret_key, while the generated value is written only into/var/lib/searx/searx-env(line 60), which is supplied asenvironmentFile(line 74). If the loader does not expand$VAR, the effective secret key is a fixed public literal identical on every deployment and the generated key file is unused; the PR's 'automated secret key generation' claim would not hold. Which substitution form does the pinned module support (e.g.!ENV)?searx.serviceordered aftersearx-init.serviceby the upstream module? The new generator is ordered onlybefore = [ "searx-init.service" ]andsearx-initgetsafter/requiresof it, so nothing in the supplied material orders the searx service itself after the key generator; a first start could race key creation.~/.hermes/config.yamlinterpolate${VAR}insidemcp_serversheaders from the process environment?modules/mcp/redview.nix:44and the generic http branch atmodules/mcp/default.nix:192emit literal${REDVIEW_MCP_API_KEY}/Bearer ${VAR}strings, andscripts/check-redview-mcp.nix:50asserts only that literal string, so interpolation is untested here.inputs.hermes-agent.nixosModules.defaultcreate thehermesuser and group and run the daemon as that user?modules/services/hermes.nixassumes it:users.users.hermes.extraGroups = [ "users" ],users.users.${user}.extraGroups = [ "hermes" ], and the MCP secret overridegroup = "hermes"; mode = lib.mkForce "0440"(lines 141-142), which is what lets the stdio launchers (modules/mcp/beszel.nix,modules/mcp/pangolin.nix)cattheirconfig.sops.secrets.*.pathfiles as the hermes user.Review limitations
nix flake check, thecheck-redview-mcpandcheck-service-failure-monitorassertions, and any live-service evidence were not independently verified.github:NousResearch/hermes-agentflake and nixpkgs'services.searxmodule are not present in the checkout, so the option names and defaults consumed by the new modules (services.hermes-agent.{mcpServers,extraDependencyGroups,settings,environment,environmentFiles,stateDir,workingDirectory,addToSystemPackages},services.searx.settings, and thesearx-init.serviceunit) could not be inspected.modules/mcp/default.nix(the ai-desktop/ai-runtime/pi-pangolin profiles) were read for consistency against the newhermesMcpServers/hermesEnvbranches but not compared against a base revision.secrets/hermes.yamlandsecrets/README.mdwas treated as encrypted SOPS evidence only; no secret value was inspected or disclosed, and no claim is made about whether the re-encryptedhermes/matrix/access-tokenis a rotation or a re-encryption.Diff coverage
README.md: reviewed — included in a context-limited batchflake.lock: reviewed — included in a context-limited batchflake.nix: reviewed — included in a context-limited batchhosts/vega/default.nix: reviewed — included in a context-limited batchlib/auto-update-policy.nix: reviewed — included in a context-limited batchmodules/mcp/default.nix: reviewed — included in a context-limited batchmodules/mcp/redview.nix: reviewed — included in a context-limited batchmodules/services/hermes.nix: reviewed — included in a context-limited batchmodules/services/searxng.nix: reviewed — included in a context-limited batchscripts/check-redview-mcp.nix: reviewed — included in a context-limited batchsecrets/README.md: reviewed — included in a context-limited batchsecrets/hermes.yaml: reviewed — included in a context-limited batchReview metadata
Addressed the advisory findings from Review #53 in commit
a064cdd:modules/services/searxng.nix, wrapped thesystemd.servicesdefinition block inlib.mkIf (cfg.environmentFile == null)rather than assigningmkIfto unit attribute values. This guarantees no emptysearx-secret-key.serviceunit attribute is emitted when a customenvironmentFileis specified.modules/services/hermes.nix, gated thesearxngUrldefault on both module presence andconfig.nixosConfig.searxng.enable, resolving the effective bind address (127.0.0.1for0.0.0.0, or the custombindAddress) and returningnullwhen SearXNG is disabled or absent. Whennull, bothSEARXNG_URLandweb.search_backendare cleanly suppressed.Validation:
treefmt-checkand fullnix flake checkpassed cleanly. Pushing commita064cddto trigger final verification.Automated code review
Reviewed commit:
a064cddc2d1cd24b29b49ce1378c91f290378542Verdict: Requires further work
Resolve the blocking or important findings and investigate failed deterministic checks before merging.
Overall assessment
The change wires a new Vega-only Hermes service (modules/services/hermes.nix), a new SearXNG module, a new
hermes-agentflake input, its auto-update policy group, and a new Hermes view of the MCP registry (modules/mcp/default.nixhermesMcpServers/hermesEnvplus thehermesentry in modules/mcp/redview.nix). Cross-references that could be checked in the checkout line up: the new assertion in scripts/check-redview-mcp.nix matches the literal${REDVIEW_MCP_API_KEY}header produced by modules/mcp/redview.nix:44 (the check imports the registry directly, so it is unaffected by the mode/group override in hermes.nix);hermes-agentis added both to the flake input set (flake.nix) and to the}@inputs:pattern, and is classified in lib/auto-update-policy.nix withhosts = [ "vega" ], matching the only host that imports modules/services/hermes.nix; secrets/hermes.yaml is scoped to Vega in .sops.yaml; port 8888 is unused on Vega (only Lyra uses it, for signal-cli); the added backup path is de-duplicated by modules/services/backrest.nix against the existing/srv/servicesparent. The reportable defects are confined to the new modules: an undeclared model provider (with a deadproviders.novaentry), unguardedgit config --globalcalls inpreStart, a blanketmkForce "0440"group override over the whole MCP secret registry, an unused package in the unit PATH, and an auto-update policy change whose evidence stops at one deployment.Blocking findings
None.
Important findings
model_aliases.opencode-fallback references a provider that settings.providers never declares; providers.nova is dead configuration (modules/services/hermes.nix:220; medium confidence)
In the same module,
settings.providers(lines 203-213) declares onlycustomandnova, andnovais referenced by nothing:settings.model.provider(line 198) andmodel_aliases.nova-qwen-coder.provider(line 219) both usecustom.model_aliases.opencode-fallback(lines 220-223) usesprovider = "opencode-go", which appears nowhere insettings; the only OpenCode Go material in the module is theOPENCODE_GO_API_KEYline of the env template (line 156), which no provider maps to. README.md:216 documentsopencode-goas the intended fallback.Impact: The documented OpenCode Go fallback is unlikely to resolve or authenticate: its alias names an undeclared provider and the exported
OPENCODE_GO_API_KEYis never bound to a provider, while an identicalnovaprovider block is declared but never used.Suggested fix: Declare an
opencode-goprovider insettings.providerskeyed toOPENCODE_GO_API_KEY(or drop the alias if the provider is built in upstream), and delete the unreferencedproviders.novablock so the declared provider set matches the aliases that actually use it.Unguarded
git config --globalcalls in preStart can abort the unit; the module never sets HOME for it (modules/services/hermes.nix:249; medium confidence)preStart(line 243) runs${pkgs.git}/bin/git config --global user.name ...,user.email ...andinit.defaultBranch main(lines 249-251) with no guard, whereas the clone at line 254 is guarded with|| { ...warning...; }and the pull uses|| true. The module never setsHOME/HomeDirfor thehermes-agentunit; the comparable Git/state-using services in this tree set it explicitly (modules/services/kiwifs.nix:178Environment = [ "HOME=${cfg.dataDir}" ], modules/services/bookstack-mcp.nix:109, modules/services/navidrome-mcp.nix:108). The author values are already supplied to the unit throughenvironment(GIT_AUTHOR_NAME/GIT_AUTHOR_EMAIL/GIT_COMMITTER_NAME/GIT_COMMITTER_EMAIL, lines 210-213).Impact: If the pinned upstream module does not set HOME for the service user,
git config --globalfails ('$HOME not set') and, being unguarded, abortspreStartand preventshermes-agent.servicefrom starting; the profile clone/pull and the SOUL.md/skills symlinking below would never run. The global author settings are also redundant with the GIT_AUTHOR_/GIT_COMMITTER_ environment already configured.Suggested fix: Drop the three global
git configcalls (the GIT_AUTHOR_/GIT_COMMITTER_ environment already covers authorship) or supply authorship per invocation viagit -C ... -c user.name=... -c user.email=...; if global state is genuinely wanted, setHomeDir/HOMEfor the unit as the other service modules do and guard the commands like the clone/pull.mkForce "0440" + group "hermes" is applied to every fleet MCP secret, overriding the per-server declarations (modules/services/hermes.nix:147; medium confidence)
Lines 141-148 map over the whole
mcp.sopsSecretsregistry and addgroup = "hermes"andmode = lib.mkForce "0440". Those same secrets are declared per server asowner = user; mode = "0400"(modules/mcp/redview.nix:23-27, kiwifs.nix:20-24, navidrome.nix:19-24, trilium.nix:20-25, synthseek.nix:19-24, beszel.nix:28-33, karakeep.nix:57-62, pangolin.nix:30-35). For the http servers the token is already handed to Hermes through thehermes-envtemplate (lines 152-161, consumed asenvironmentFilesat line 193) and referenced only as${VAR}headers (modules/mcp/default.nix:192, modules/mcp/redview.nix:44), so their rendered secret files do not need to be group-readable by Hermes; only the stdio launchers actuallycatthe files (modules/mcp/beszel.nix:14-15, karakeep.nix read_secret).Impact: On Vega every fleet MCP token/credential file becomes group-readable by the newly introduced
hermesgroup, andmkForcesilently wins over the per-servermode = "0400"declarations, so a later per-server permission policy cannot be expressed without editing this module. Secret exposure is widened to the whole registry rather than to the consumers that read the files.Suggested fix: Restrict the group/mode override to the secrets the stdio launchers actually read (or add an explicit per-server opt-in, e.g. a
hermesReadableflag in the server modules), instead of forcing one mode across the entire registry.Suggestions
pkgs.nixfmt is added to the service PATH but is never invoked (modules/services/hermes.nix:308; high confidence)
systemd.services.hermes-agent.path = [ pkgs.git pkgs.openssh pkgs.nixfmt ](lines 305-309); neitherpreStart(243-290) norpreStop(291-304) nor any other part of the module callsnixfmt.Impact: An unused package is pulled into Vega's closure and the unit's PATH; harmless but it obscures the actual runtime dependency set of the service.
Suggested fix: Drop
pkgs.nixfmtfrompath, or document the agent workflow that is expected to invoke it.New auto-update policy group has no no-op follow-up evidence, which AGENTS.md requires for auto-update changes (lib/auto-update-policy.nix:215; medium confidence)
The change registers a new auto-update group (
name = "hermes-agent"; inputs = [ "hermes-agent" ]; hosts = [ "vega" ]), so the producer will now bump that GitHub input and rebuild Vega without review. AGENTS.md states: 'For multi-host or auto-update changes, record one genuine deployment and a no-op follow-up before closing the issue.' The supplied material records a first deployment only; no no-op follow-up appears in the supplied evidence.Impact: The new auto-update tier is exercised only by its first, large delta; a subsequent no-op producer run would show whether the newly classified input is handled cleanly by the isolation and publication path.
Suggested fix: Record a no-op auto-update follow-up on Vega (e.g.
just auto-update-last-runafter the next scheduled run) before closing the issue, per AGENTS.md.Tests and validation
Questions
secret_key = "$SEARX_SECRET_KEY"while the generated file writesSEARX_SECRET_KEY=...(line 61). Does the SearXNG settings loader substitute bare$VAR, or does it require the${VAR}brace form? If the latter, the literal string becomes the secret key and the generated value is never used.services.searxmodule actually provide asearx-init.serviceunit? The key generator is tied only to it (wantedBy/beforeat searxng.nix:48-50,after/requiresat :68-69); if that unit does not exist,searx-secret-key.serviceis never pulled in andservices.searx.environmentFile = "/var/lib/searx/searx-env"(line 75) becomes a missing EnvironmentFile.hermes-agentflake'snixosModules.defaultsetHOME/HomeDirfor the service user, and does it create thehermesuser and group that modules/services/hermes.nix:130-132 (owner = "hermes") and :165-166 (users.users.hermes.extraGroups) rely on? Both the upstream module and this file declare state about that account.sops.templates."hermes-env"(hermes.nix:152) readable by thehermesservice user? It sets noowner/group/mode, whereas every other template in this tree that is consumed by a non-root service user sets them explicitly (modules/services/immich.nix:104-110, modules/services/paperless.nix:122-125).${VAR}inside~/.hermes/config.yamlheader values (modules/mcp/default.nix:192, modules/mcp/redview.nix:44)? scripts/check-redview-mcp.nix:53 only compares the emitted string, so it does not prove runtime expansion of the values exported by thehermes-envtemplate.HERMES_HOMEactually${cfg.stateDir}/.hermes?preStart(line 245) andpreStop(line 291,gateway.pid/.gateway-planned-stop.json) assume that path without it being declared in this module.${cfg.stateDir}/workspace(theworkingDirectorydefault, hermes.nix:44) created anywhere?preStartonly creates${cfg.stateDir}/profile(via clone) and${cfg.stateDir}/.hermes(line 271).OPENCODE_GO_API_KEYandCUSTOM_API_KEY(the Pangolin key) only. Should that row be corrected to nameopencode-go-api-key?Review limitations
nix flake checkpassing is taken from the pull-request text, not verified in this environment.hermes-agentflake (NousResearch/hermes-agent) is not vendored in this checkout, so itsnixosModules.defaultoption names (mcpServers,extraDependencyGroups,environment,settings,stateDir,workingDirectory,addToSystemPackages,environmentFiles), its user/group provisioning, itsHERMES_HOME/gateway.pidlayout, and its acceptedmcp_servers/model_aliasesschema could not be inspected.services.searxmodule is not supplied, so its unit names (searx-init.service,searx.service), its user/state-directory handling, and its own secret-key handling could not be checked against modules/services/searxng.nix.secrets/hermes.yaml(Vega plus YubiKeys and the provisioning key) were read.Diff coverage
README.md: reviewed — included in a context-limited batchflake.lock: reviewed — included in a context-limited batchflake.nix: reviewed — included in a context-limited batchhosts/vega/default.nix: reviewed — included in a context-limited batchlib/auto-update-policy.nix: reviewed — included in a context-limited batchmodules/mcp/default.nix: reviewed — included in a context-limited batchmodules/mcp/redview.nix: reviewed — included in a context-limited batchmodules/services/hermes.nix: reviewed — included in a context-limited batchmodules/services/searxng.nix: reviewed — included in a context-limited batchscripts/check-redview-mcp.nix: reviewed — included in a context-limited batchsecrets/README.md: reviewed — included in a context-limited batchsecrets/hermes.yaml: reviewed — included in a context-limited batchReview metadata
Implemented the resolutions for all findings in Review #54 in commit
50b0591:providers.opencode-go(base_url = "https://opencode.ai/zen/go/v1",key_env = "OPENCODE_GO_API_KEY") somodel_aliases.opencode-fallbackbinds correctly, and deleted the unusedproviders.novablock.HOME = "${cfg.stateDir}"toserviceConfig.Environmentand removed redundant globalgit configcommands frompreStart(git authorship is already provided per-process viaGIT_AUTHOR_*andGIT_COMMITTER_*environment variables).mode = "0440"andgroup = "hermes"override to only the secrets required by stdio MCP launchers (beszel,pangolin,karakeep). Left HTTP/SSE MCP secrets unmodified at0400owned by the primary user.owner = "hermes",group = "hermes", andmode = "0400"onsops.templates."hermes-env".pkgs.nixfmtfromsystemd.services.hermes-agent.path.secrets/README.mdto referenceopencode-go-api-keyfor Hermes fallback rather than OpenRouter.Validation: Full
nix flake checkand formatting passed cleanly across all host configurations. Pushing commit50b0591now.Automated code review
Reviewed commit:
50b0591c2ff874f25e308c1b4f9a94fa6a9fbb14Verdict: Requires further work
Resolve the blocking or important findings and investigate failed deterministic checks before merging.
Overall assessment
Static validation pass over the Hermes/SearXNG change. The flake plumbing checks out in the checked-out tree:
hermes-agentis declared as a root input in flake.nix and threaded through the@inputsargument list,lib/auto-update-policy.nixregisters a matchinghermes-agentgroup whose input name is a root input, andhosts/vega/default.niximports both new modules and setsnixosConfig.hermes.enable/nixosConfig.searxng.enable.scripts/check-service-failure-monitor.nix's ownership assertion is satisfiable because hermes.nix sets a non-emptysystemd.services.hermes-agent.serviceConfigand searxng.nix self-registerssearx.scripts/check-redview-mcp.nix's new assertion matches thehermesentry shape inmodules/mcp/redview.nixexactly. The six-name group-permission list in modules/services/hermes.nix currently matches exactly thesopsSecretsof the three stdio servers (beszel, pangolin, karakeep), so no present-day permission defect is demonstrable. Four findings survive: an unexpanded secret-key reference in the SearXNG settings, contradictory Matrix auto-threading values set in two places in the same new module, a deliberately swallowed profile-clone failure that is invisible to the failure monitor, and a rollout-evidence gap required by an explicit AGENTS.md rule for auto-update policy changes.Blocking findings
None.
Important findings
SearXNG secret_key is written into the settings attrset as the literal string "$SEARX_SECRET_KEY" (modules/services/searxng.nix:81; medium confidence)
modules/services/searxng.nix:56 writes
SEARX_SECRET_KEY=$(head -c 32 /dev/urandom | base64)into/var/lib/searx/searx-env; line 68 passes that same file toservices.searx.environmentFile; line 81 setssettings.server.secret_key = "$SEARX_SECRET_KEY"as a plain Nix string inside thesettingsattrset, which is serialized into the service's settings file rather than into the environment. Nothing in the supplied material shows the settings file being expanded from an EnvironmentFile variable of that name.Impact: The generated random key is consumed only through the environment file, while the settings value is a fixed, publicly visible string; if the settings loader does not expand
$SEARX_SECRET_KEY, every Vega generation uses the same literal secret key and the per-host random value is dead configuration.Suggested fix: Confirm the effective key on Vega (compare the running engine's secret across two starts). If it is the literal string, supply the key through the mechanism the service actually reads - the module's own secret/secretKeyFile option, or the expansion syntax the settings loader supports - instead of an unexpanded shell-style reference in
settings.server.Matrix DM auto-threading is configured twice with opposite values in the same module (modules/services/hermes.nix:196; high confidence)
modules/services/hermes.nix:196-197 sets
services.hermes-agent.environment.MATRIX_DM_AUTO_THREAD = "false"andMATRIX_REQUIRE_MENTION = "false", while the same module setsservices.hermes-agent.settings.matrix.auto_thread = trueandrequire_mention = falseat lines 243-244. The same knob is therefore declared through two different interfaces with contradictory values.Impact: The deployed DM threading behaviour is not determinable from the configuration, and a later edit to one copy silently leaves the other stale; the README documents the gateway as a user-facing Matrix agent, so the mismatch is user-visible behaviour.
Suggested fix: Keep one source of truth per Matrix knob: either drop the
MATRIX_DM_AUTO_THREAD/MATRIX_REQUIRE_MENTIONenvironment entries or drop thesettings.matrixblock, and confirm whether DM auto-threading is intended to be on or off.Suggestions
A failed initial profile clone is only echoed, so the agent starts without persona or skills and no alert (modules/services/hermes.nix:271; medium confidence)
preStart (modules/services/hermes.nix,
git clone ... || { echo "hermes-agent: warning: initial clone ... failed; continuing without profile repo"; }) swallows the clone failure, and the subsequentSOUL.md,distribution.yamlandskillssymlinks are each guarded by[ -f "$repo_dir/..." ]/[ -d "$repo_dir/skills" ]tests, so a failed clone leaves$hermes_homewith none of them. preStart still exits 0, andservices.serviceFailureMonitor.services = lib.mkAfter [ "hermes-agent" ](line ~325) only reacts to unit failures.Impact: A transient network or deploy-key failure at first activation leaves the Matrix gateway running with no persona or skills, indistinguishable from a healthy agent: no ntfy alert, no failed unit, and the condition is repaired only on a later start.
Suggested fix: Make the degraded state observable: retry the clone with a bounded backoff inside preStart, or fail preStart (or write a marker the failure monitor can report) so a missing profile surfaces as an alert rather than only a journal line.
New vega-tier auto-update policy group has no recorded no-op follow-up evidence (lib/auto-update-policy.nix:215; medium confidence)
The change adds a policy group
name = "hermes-agent"; inputs = [ "hermes-agent" ]; hosts = [ "vega" ], i.e. it changes the automatic-update controller for a pull-only host (AGENTS.md:152 describes vega as "pull-only auto-update"). AGENTS.md:43 states an explicit repository rule: "For multi-host or auto-update changes, record one genuine deployment and a no-op follow-up before closing the issue", and AGENTS.md:45 requiresjust testplus an auto-update hold when testing remotely.Impact: The new entry makes the updater eligible to rebuild and restart the Hermes daemon automatically on Vega; the supplied material contains no evidence of the second, no-op auto-update run that the repository's own rule requires for this class of change, nor that
just testwith an auto-update hold was used.Suggested fix: Record the rollout evidence AGENTS.md requires for an auto-update change: one genuine deployment plus a clean no-op follow-up on Vega against the same lock, with an auto-update hold around the test activation and
just testused rather than a rawnixos-rebuild test.Tests and validation
Questions
services.searx, thesearxuser,/var/lib/searx/searx-envand monitors the unit namesear, while the module and README call the service SearXNG. Is the legacyservices.searxnixpkgs module intended, or should this beservices.searxng(whose unit/user names differ)? The ordering at lines 48-62 also assumes nixpkgs defines asearx-init.serviceunit; if it does not,searx.servicehas no dependency onsearx-secret-key.serviceand could start before/var/lib/searx/searx-envexists.mcp.hermesEnv(modules/mcp/default.nix:213) emitsKIWIFS_MCP_TOKEN=,NAVIDROME_MCP_TOKEN=,SYNTHSEEK_MCP_API_KEY=,TRILIUM_ETAPI_TOKEN=andREDVIEW_MCP_API_KEY=asconfig.sops.placeholder.*values, i.e. paths to secret files that areowner = primaryUser, mode = "0400"and are not in the group-permission override list in modules/services/hermes.nix. Does hermes-agent resolve such path values by reading the file, or does it use the value verbatim in theAuthorization/X-Api-Keyheader? If it reads the file, the hermes user cannot read these five secrets; if it uses it verbatim, the header carries a path instead of a token.hermes-agentflake (github:NousResearch/hermes-agent, rev b30f95ac...) is not present in the supplied material, so the option names used in modules/services/hermes.nix (mcpServers,extraDependencyGroups,addToSystemPackages,settings,stateDir,workingDirectory,environmentFiles), thehermesuser/group, and the${stateDir}/.hermesconfiguration home assumed by preStart/preStop could not be confirmed.hermesMcpServersmaps all ofenabledServers, currently including nixos, forgejo, trilium, synthseek, navidrome, kiwifs, bookstack, pangolin, redview), or only a subset?enableMcpis all-or-nothing as written.Review limitations
nix flake check,just test, or repository code was executed; the review is entirely static against the checked-out tree.hermes-agentflake, nixpkgs'services.searxmodule, and the SearXNG settings-file loader are not in the supplied material, so upstream option names, unit names, user creation, and environment/secret expansion semantics could not be verified.secrets/hermes.yamlwas not decrypted; recipient scoping was read only from the ciphertext structure in the diff.Diff coverage
README.md: reviewed — included in a context-limited batchflake.lock: reviewed — included in a context-limited batchflake.nix: reviewed — included in a context-limited batchhosts/vega/default.nix: reviewed — included in a context-limited batchlib/auto-update-policy.nix: reviewed — included in a context-limited batchmodules/mcp/default.nix: reviewed — included in a context-limited batchmodules/mcp/redview.nix: reviewed — included in a context-limited batchmodules/services/hermes.nix: reviewed — included in a context-limited batchmodules/services/searxng.nix: reviewed — included in a context-limited batchscripts/check-redview-mcp.nix: reviewed — included in a context-limited batchsecrets/README.md: reviewed — included in a context-limited batchsecrets/hermes.yaml: reviewed — included in a context-limited batchReview metadata
Addressed the findings from Review #55 in commit
e935a05:searx-init.service(nixos/modules/services/networking/searx.nix:29) executesenvsubst < ${settingsFile} > settings.ymlwithEnvironmentFile = cfg.environmentFile. The$SEARX_SECRET_KEYtoken insettings.server.secret_keyis substituted byenvsubstduring unit initialization, ensuring the generated/var/lib/searx/searx-envrandom key is the effective secret key.MATRIX_AUTO_THREAD = "true"alongsideMATRIX_DM_AUTO_THREAD = "false"with an in-code comment. In Hermes,MATRIX_AUTO_THREAD(andsettings.matrix.auto_thread) controls automatic threading in multi-user rooms, whileMATRIX_DM_AUTO_THREADspecifically controls direct messages (rooms with ≤ 2 members); they represent distinct scopes rather than conflicting settings.preStart, wrapped the initial profile repository clone in a 3-attempt retry loop with 2s backoff. If all 3 attempts fail,preStartexits with status 1, ensuring a persistent failure causes the systemd service to enter a failed state and triggersserviceFailureMonitor.AGENTS.md.Validation: Full
nix flake checkand formatting checks passed cleanly across all host targets. Pushing commite935a05now.Automated code review
Reviewed commit:
e935a05e461e729e9bb74ccdb707f5e4035239a6Verdict: Ready to merge
No blocking or important findings were retained, and deterministic checks passed. Suggestions remain advisory.
Overall assessment
Strict validation pass over the Vega Hermes/SearXNG feature branch against the checked-out tree. The wiring is internally consistent where it can be verified:
hermes-agentis declared inflake.nixinputs and added to the flake'soutputsinput pattern, and it is classified inlib/auto-update-policy.nixgroups (satisfying the README rule that new root flake inputs be classified); the three new SOPS keys insecrets/hermes.yamlmatch thehermes/matrix/access-token,hermes/pangolin/api-key,hermes/git/deploy-keylookups inmodules/services/hermes.nixand the updatedsecrets/README.mdrow; the six secret names re-grouped for thehermesgroup (beszel-mcp-email/password,pangolin-mcp-url/api-key,karakeep-mcp-url/api-key) match exactly the names declared bymodules/mcp/{beszel,pangolin,karakeep}.nix, which are the only stdio MCP servers in the registry; every HTTP MCP server that receives a${VAR}header fromhermesMcpServersalso receives a matchingVAR=<sops placeholder>line fromhermesEnv(no MCP module declares a top-levelheaderskey, so theoptionalAttrs (s ? headers)branch cannot clobber the generatedAuthorizationheader); the derivedsearxngUrl(127.0.0.1 whenbindAddress == "0.0.0.0", port 8888) matches the README text, and 8888 collides with no other Vega declaration (the only other use is Lyra's signal-cli); the new failure-monitor nameshermes-agentandsearxare self-registered in the modules and are not duplicated inhosts/vega/default.nix's explicit list, whichscripts/check-service-failure-monitor.nixonly rejects when a watched name has no owning unit definition; the newregistry.hermesMcpServers.redviewassertion inscripts/check-redview-mcp.nixmatches thehermescustom entry shape inmodules/mcp/redview.nixbyte-for-byte. No blocking defect was demonstrable from the supplied material; the remaining items are latent robustness, documentation-drift and access-widening suggestions, plus couplings to the externalhermes-agentflake module and nixpkgs'services.searxmodule that cannot be inspected in this checkout.Blocking findings
None.
Important findings
None.
Suggestions
MCP registry header contract not updated for the new
hermescustom entry and outputs (modules/mcp/default.nix:23; high confidence)The file's header documents the per-server return contract and its custom overrides as
sopsSecrets,tokenExport,agy,opencode,codexSnippetonly (lines 1-23), yet this change addshermesMcpServers(consumed byservices.hermes-agent.mcpServers),hermesEnv(consumed by thehermes-envtemplate inmodules/services/hermes.nix), both added to the returnedinherit (...)set, andmodules/mcp/redview.nixnow supplies ahermes = { url; enabled; headers; }custom key consumed viaif s ? hermes then s.hermes.AGENTS.mddescribesmodules/mcp/as the client registry for "Codex, OpenCode, Pi, and Antigravity CLI" only.Impact: The registry's stated contract no longer matches its behaviour: a future author adding an MCP server cannot tell that
hermesis a valid custom key, what shape it must have, or thathermesEnvrequirestokenEnvVarplussecretNameto be set for a Hermes-consumable HTTP entry. Today only theregistry.hermesMcpServers.redviewassertion inscripts/check-redview-mcp.nixpins that shape.Suggested fix: Extend the header comment in
modules/mcp/default.nixto document thehermescustom entry shape and thehermesMcpServers/hermesEnvoutputs alongside the existingagy/opencode/codexSnippetdocumentation, and note thetokenEnvVar+secretNameprecondition for the env template.Steady-state profile pull failure is silently swallowed, allowing undetected profile drift (modules/services/hermes.nix:285; high confidence)
preStarthandles the initial clone verbosely (three attempts, thenecho "hermes-agent: error: initial clone ..." >&2; exit 1), but the steady-state path isGIT_SSH_COMMAND="$git_ssh" git -C "$repo_dir" pull --ff-only || true, which discards the exit status and emits no diagnostic. The module also registershermes-agentinservices.serviceFailureMonitor.services, so a swallowed pull produces no alert.Impact: Because the module documents the agent as committing and pushing its own skills back to
nimmo/hermes(README: "synchronized bidirectionally ... allows the agent to author, commit, and push back its own skills"), a local tree that has diverged from the remote makes--ff-onlyfail on every start; theSOUL.md,distribution.yamlandskillssymlinks then keep pointing at a stale profile with no log line and no failure-monitor signal, so prompt/skill iteration silently stops taking effect.Suggested fix: Capture the pull's exit status and emit an explicit
hermes-agent: profile pull rejected (local history diverged)line as the clone path already does, and state the intended reconciliation policy for diverged history (rebase, force-sync, or manual intervention) in a comment so the behaviour is reviewable.mkForcewidens group access on MCP secrets shared with the other AI clients (modules/services/hermes.nix:148; high confidence)modules/mcp/beszel.nix,pangolin.nixandkarakeep.nixdeclarebeszel-mcp-email/password,pangolin-mcp-url/api-keyandkarakeep-mcp-url/api-keywithowner = user; mode = "0400";hermes.nixre-declares exactly those names withgroup = "hermes"; mode = lib.mkForce "0440", andmodules/profiles/ai-agents.nixline 37 setssops.secrets = mcp.sopsSecretsfor the same option paths on every AI-client host (Vega imports them viaprofiles/ai-desktop.nix).Impact: On Vega those six secret files become group-readable to the new
hermesgroup instead of private to the primary user, andmkForcealso blocks any future host-level override of their mode/group. The same files arecated by the shared launchers used by Codex, OpenCode and Pi (tokenExports,pangolin-mcp-launcher.nix, the karakeep launcher), so this is a shared-secret permission change rather than one scoped to the Hermes consumer.Suggested fix: Keep the permission change scoped to the Hermes consumer: either give Hermes its own secret entries (distinct names pointing at the same SOPS keys) with
owner = "hermes"; mode = "0400", or replacemkForcewith a plain definition plus a documented comment so a host can still override mode/group.searxng reads
nixosConfig.nebula.enablewithout the guard or assertion used by sibling modules (modules/services/searxng.nix:92; high confidence)networking.firewall.interfaces = lib.mkIf config.nixosConfig.nebula.enable { "nebula.mesh".allowedTCPPorts = [ cfg.port ]; };reads the option directly. Sibling modules either guard it (modules/services/bookstack.nixline 18 usesnebulaEnabled = lib.attrByPath [ "nixosConfig" "nebula" "enable" ] false config;) or state the requirement (modules/services/kiwifs.nix,modules/services/token-tv.nix,modules/services/trilium-web.nixuseassertion = config.nixosConfig.nebula.enable;with an explicit message). The newhermes.nixguards the analogous case withconfig.nixosConfig ? searxng && ....Impact: Enabling
nixosConfig.searxng.enableon a host that does not importmodules/networking/nebula.nix- e.g. a future host or apotential/draft such aspotential/nova/- fails evaluation with a bare attribute error instead of the repository's stated requirement message, which is harder to act on for a module intended to be host-portable. No defect on Vega, which imports the nebula module.Suggested fix: Follow the existing convention: add an assertion with a
nixosConfig.searxng requires nixosConfig.nebula.enablemessage, or use thelib.attrByPath [...] false configdefault used bymodules/services/bookstack.nix.Tests and validation
Questions
hermes-agentflake input (github:NousResearch/hermes-agent, locked at rev b30f95ac...) is external and not vendored in this checkout, so I could not confirm that itsnixosModules.defaultplaces the agent's configuration directory at<stateDir>/.hermes;preStarthardcodeshermes_home="${cfg.stateDir}/.hermes"for theSOUL.md,distribution.yamlandskillssymlinks, andpreStophardcodesgateway.pidand.gateway-planned-stop.json. Please confirm those paths and filenames match the pinned upstream module's contract rather than only the current live deployment.Userishermes.hermes.nixcreatesusers.users.hermesonly viaextraGroups, and setshermes-git-deploy-keytoowner = "hermes"; mode = "0400"plussops.templates."hermes-env"toowner = "hermes"; mode = "0400"; if the upstream module names its service user differently, both files would be unreadable by the unit and the profile clone would fail.services.searx.settings.server.secret_key = "$SEARX_SECRET_KEY"(modules/services/searxng.nix line 81) expanded by the nixpkgsservices.searxmodule, or does SearXNG require the${SEARX_SECRET_KEY}braced form? The supplied material contains neither the nixpkgs module nor SearXNG's settings renderer, so I could not verify that the generatedSEARX_SECRET_KEYin/var/lib/searx/searx-envreaches the settings file rather than being used as a literal string.services.searxmodule already definesystemd.services.searx-initand asearxuser? The addedsearx-secret-keyunit is pulled in only throughwantedBy = [ "searx-init.service" ], andsystemd.services.searx-initis overridden with onlyafter/requires; if nixpkgs does not define that unit, this module creates a no-opsearx-initservice at boot, and if its default service user is notsearx,serviceConfig.User = "searx"/StateDirectory = "searx"would not match.hermes-agentbe in the auto-update tier at all?docs/auto-update-remediation.mdstates that deliberately pinned root inputs are classified inlib/auto-update-policy.nix, and this input supplies the NixOS module whose option names (mcpServers,extraDependencyGroups,settings,environmentFiles,stateDir) this repository now depends on; an automatic update would rebuild and activate Vega's gateway without human review.users.users.hermes.extraGroups = [ "users" ]adds the agent's service user to the systemusersgroup whileusers.users.${user}.extraGroups = [ "hermes" ]does the reverse. Is the first direction required for a specific path (e.g. the/mnt/storageor/srv/servicestrees created by Vega's tmpfiles rules), and if so should the reason be commented in the module?pages/projects/nixos-config/hermes.md, but nopages/path exists in this checkout and it is not among the changed files. Is that page published in the separate KiwiFS workspace rather than in this repository, and is it linked from the README section that was added?Review limitations
hermes-agentflake input is external and not vendored in this checkout, so none of itsservices.hermes-agentoption names, types, defaults, generated unit contents, or its~/.hermeslayout could be inspected; findings aboutsettings,mcpServers,extraDependencyGroups,environmentFiles,stateDir,gateway.pidand the.gateway-planned-stop.jsonmarker are unverified against the consumer.services.searxmodule is not supplied, so thesettings,environmentFile,searx-initunit, service user, and secret-key substitution could not be checked; theflake checkclaim in the PR text is the only evidence that the option names exist.nix flake check, the flake'schecks.*assertions (includingservice-failure-monitor-coverage,redview-mcp,nova-remote-builder-config), and any build/activation were not run here; the reported validation and live canary evidence comes only from the pull-request text.scripts/check-redview-mcp.nix, so the derivedsearxngUrl, thehermes-envtemplate contents, and the MCP header/env pairing are unverified by any deterministic check in the repository.${VAR}insidemcp_serversheaders (as emitted byhermesMcpServers) against the values exported byhermesEnvcould not be verified; only the pairing of names within this repository was checked.nimmo/hermesprofile repository, the Matrix homeserver configuration, the Pangolin gateway, and the KiwiFS page referenced in the PR summary are outside the supplied material and were not inspected.Diff coverage
README.md: reviewed — included in a context-limited batchflake.lock: reviewed — included in a context-limited batchflake.nix: reviewed — included in a context-limited batchhosts/vega/default.nix: reviewed — included in a context-limited batchlib/auto-update-policy.nix: reviewed — included in a context-limited batchmodules/mcp/default.nix: reviewed — included in a context-limited batchmodules/mcp/redview.nix: reviewed — included in a context-limited batchmodules/services/hermes.nix: reviewed — included in a context-limited batchmodules/services/searxng.nix: reviewed — included in a context-limited batchscripts/check-redview-mcp.nix: reviewed — included in a context-limited batchsecrets/README.md: reviewed — included in a context-limited batchsecrets/hermes.yaml: reviewed — included in a context-limited batchReview metadata