Open ahihi opened 1 year ago
@Hoverbear wonder if this is related to https://github.com/DeterminateSystems/nix-installer/issues/327#issuecomment-1470383194 or just ~adjacent?
This sounds similar! Here are two valid workarounds: https://github.com/DeterminateSystems/nix-installer#using-macos-remote-ssh-builders-nix-binaries-are-not-on-path
See also https://github.com/NixOS/nix/pull/6628 . It got stuck in review, as I can't produce good enough code that implements it.
Describe the bug
when ssh-ing into a macOS system with Nix installed, with a remote command given to ssh, the resulting shell's PATH does not include Nix directories.
Steps To Reproduce
ssh <host> 'echo $PATH'
Expected behavior
i expected PATH to include the Nix directories.
nix-env --version
outputnix-env (Nix) 2.11.1
Additional context
this breaks any attempt to call Nix-installed executables in the ssh remote command, for example
mosh
does not work due to not being able to findmosh-server
.https://github.com/NixOS/nix/issues/2587 seems related.