{ lib, ... }: { networking.firewall.allowedTCPPorts = [ 22 ]; services.openssh = { enable = lib.mkDefault true; settings = { PasswordAuthentication = lib.mkForce false; KbdInteractiveAuthentication = lib.mkForce false; PermitRootLogin = lib.mkForce "prohibit-password"; }; openFirewall = lib.mkDefault true; hostKeys = [ { path = "/etc/ssh/ssh_host_ed25519_key"; type = "ed25519"; } ]; }; }