hermes-agent/website/docs
Siddharth Balyan 4bf0e75ae9
fix(nix): make extraPackages actually work via per-user profile (#17047)
* fix(nix): make extraPackages actually work — wire into per-user profile

#17030 deprecated extraPackages because it only set the systemd service
PATH, which the terminal backend's login-shell snapshot discards.

Instead of deprecating, fix it: set users.users.${cfg.user}.packages
so NixOS builds a per-user profile at /etc/profiles/per-user/hermes/bin.
This path is included in PATH by /etc/set-environment, which the login
shell sources, so the terminal backend's snapshot picks it up.

One line of actual logic:
  users.users.${cfg.user}.packages = cfg.extraPackages;

Verified in a NixOS VM test: su - hermes -c 'which hello' resolves
to /etc/profiles/per-user/hermes/bin/hello.

Reverts the deprecation warning and docs changes from #17030, restores
extraPackages as the recommended way to give the agent extra tools.

Container mode is unaffected — extraPackages was always native-only
(the systemd path line is inside !cfg.container.enable).

* nix: clarify additive merge semantics for extraPackages user profile

---------

Co-authored-by: Siddharth Balyan <daimon@noreply.github.com>
2026-04-28 23:50:32 +05:30
..
developer-guide remove: BOOT.md built-in hook (#17093) 2026-04-28 09:50:27 -07:00
getting-started fix(nix): make extraPackages actually work via per-user profile (#17047) 2026-04-28 23:50:32 +05:30
guides docs(delegate_task): clarify that it is synchronous and not durable (#17022) 2026-04-28 06:45:15 -07:00
integrations feat(providers): add tencent-tokenhub provider support 2026-04-28 03:45:52 -07:00
reference docs: clarify quick commands config shape 2026-04-28 11:07:07 -07:00
user-guide docs: clarify quick commands config shape 2026-04-28 11:07:07 -07:00
index.md fix(docs): show sidebar on docs homepage 2026-04-16 04:24:45 -07:00