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 chris@ 'whoami' - Outputs:

with zsh:1: command not found: whoami.

What is the cause of this error?

1 Answer 1


I had to add:

programs.zsh.enable = true;

To the configuration.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.