Follow steps at https://nixos.org/manual/nixos/stable/#sec-installation-manual-summary

Ensure that ssh is enabled and the hostname is set
```
services.openssh.enable = true;
services.openssh.settings.PermitRootLogin = "yes";
networking.hostName = "jaglan-beta-m01";
```