Using emacs tramp with remote nixos hosts: add to your .emacs

(require 'tramp) (add-to-list 'tramp-remote-path 'tramp-own-remote-path)

to make it use $PATH instead of resetting to include only /run/current-system/sw/bin and nothing else useful (doesn't include packages in your profile that you added with nix-env nor anything in users.users.yourname.packages)