12e817700c
`hermes gateway install` generates a systemd unit that execs Python directly, bypassing the Nix wrapper. The wrapper sets HERMES_BUNDLED_SKILLS, HERMES_BUNDLED_PLUGINS, HERMES_WEB_DIST, HERMES_TUI_DIR, HERMES_PYTHON, HERMES_NODE, LD_LIBRARY_PATH, and PYTHONPATH — all absent from the generated unit. Result: the gateway service runs without skills, plugins, or native libs, silently breaking platform adapters (discord, etc.) even when the correct deps are installed. Capture these env vars at `gateway install` time and persist them as Environment= lines in the unit file. System-mode units remap paths from the calling user's home to the target user's home. Based on qmx's patch: https://gist.github.com/qmx/63356d87f40048565bc0f3e62d869b1f