{ ... }: { # Enable the OpenSSH daemon. services.openssh.enable = true; services.openssh.passwordAuthentication = false; # Open ports in the firewall. networking.firewall.allowedTCPPorts = [ 22 ]; }