1 2 3 4 5 6 7 8 9 10
{ config, libs, pkgs, ... }: { services.openssh = { enable = true; settings.PasswordAuthentication = false; }; networking.firewall.allowedTCPPorts = [ 22 ]; }