From 55467ba8bf07180110ea56631c247cce8ca70bc7 Mon Sep 17 00:00:00 2001 From: Ari Sosnovsky Date: Wed, 16 Sep 2026 11:48:56 -0400 Subject: [PATCH] guest: add ~/.local/bin to PATH via environment.localBinInPath hermes has createHome = false (home is the seeded state disk, not NixOS's usual skeleton), so it never gets a ~/.bashrc for the installer to patch - confirmed live ("hermes: command not found", no .bashrc to source). The installer puts its launcher in ~/.local/bin and says as much. This option wires PATH through /etc/set-environment (PAM, every login) instead, same as hl-fwdesk.nix already does on the physical host. --- guest/common.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/guest/common.nix b/guest/common.nix index 34174de..88423f2 100644 --- a/guest/common.nix +++ b/guest/common.nix @@ -243,6 +243,15 @@ in environment.systemPackages = hermesInstallDeps; + # hermes has createHome = false (its home is the state disk, seeded above, + # not NixOS's usual skeleton) so it never gets a ~/.bashrc to append to. + # Upstream's installer puts the `hermes` launcher in ~/.local/bin and says + # as much ("Could not detect shell config file to add ~/.local/bin to + # PATH"). This option adds it via /etc/set-environment (PAM, every login + # session) instead of relying on a per-user dotfile that will never exist + # here. Same option hl-fwdesk.nix already sets on the physical host. + environment.localBinInPath = true; + programs.direnv = { enable = true; nix-direnv.enable = true;