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.
This commit is contained in:
ari committed 2026-09-16 11:48:56 -04:00
1 parent e5f150b17e
commit 55467ba8bf
1 file changed
+9
+9
View File
@@ -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;