1{...}: { 2 # Enable the OpenSSH daemon. 3 services.openssh = { 4 enable = true; 5 settings = { 6 PermitRootLogin = "no"; 7 PasswordAuthentication = false; 8 }; 9 }; 10}