Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I've got a fresh nixos VM. I have a minor issue where the PATH does not seem to be set when running commands via ssh. For example:
ssh firstname.lastname@example.org 'whoami' -
ssh email@example.com 'whoami'
with zsh:1: command not found: whoami.
What is the cause of this error?
I had to add:
programs.zsh.enable = true;
To the configuration.
Required, but never shown