SSH on newly installed NixOS VM
After installing NixOS on a VM, you can configure SSH like this:
On /etc/nixos/configuration.nix
:
and /etc/nixos/ssh.nix
:
then apply the change:
Then from home, you can log in as your user, and you should be able to SSH as your user.
It’s quite useful, especially if you want to copy/paste some stuff from host to VM.