Bake in build toolchain + auto-run the Hermes installer on first boot
guest/common.nix was missing gcc/make/pkg-config/python3/xz, so the installer's node-pty compile step failed with "No C++ compiler found" - confirmed live during the hl-fwdesk incident. Also added systemd.services.hermes-install: runs the installer unattended (--non-interactive --skip-setup, confirmed supported via upstream's install.sh --help) as part of first boot, gated on its own .hermes-installed marker (same pattern as seedHermesState's .seeded). A real service rather than an activation script since it can take a while (compiling native modules) and shouldn't block boot or a nixos-rebuild. `hermes setup`/`hermes gateway install` stay manual - upstream docs don't show a non-interactive path for those, and they need real credentials anyway. Updated the README and the setup/migrate CLI's printed next-steps to match - two manual commands left instead of four. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
67477953f1
commit
1239ea0148
3 files changed
+39
-7
No files matched your search
+3
-3
@@ -363,7 +363,7 @@ def "main setup" [
|
||||
lsblk -f (ansi dark_gray)# CHECK LABELS match guest/hardware.nix(ansi reset)
|
||||
determinate-nixd login (ansi dark_gray)# FlakeHub Cache(ansi reset)
|
||||
sudo nix flake lock /etc/nixos
|
||||
curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash
|
||||
(ansi dark_gray)# hermes installs itself automatically - give it a few minutes(ansi reset)
|
||||
hermes setup
|
||||
hermes gateway install
|
||||
|
||||
@@ -453,10 +453,10 @@ def "main migrate" [
|
||||
print ""
|
||||
say "Next, inside the guest (hermes-vm ssh):"
|
||||
say $" export HERMES_HOME=($dest)"
|
||||
say " # then the usual install steps from README.md:"
|
||||
say " # hermes installs itself automatically on first boot - if that's"
|
||||
say " # already done (check: hermes-ctl units), just:"
|
||||
say " # determinate-nixd login"
|
||||
say " # sudo nix flake lock /etc/nixos"
|
||||
say " # curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash"
|
||||
say " # hermes setup"
|
||||
say " # hermes gateway install"
|
||||
print ""
|
||||
|
||||
Reference in new issue
Block a user