{ lib, ... }: { services.openssh = { enable = true; openFirewall = true; settings = { KbdInteractiveAuthentication = lib.mkDefault false; PermitRootLogin = lib.mkDefault "prohibit-password"; PasswordAuthentication = lib.mkDefault false; }; }; users.users.root.openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKp1Rfb2acLM/5TDUahu+AdV/HVw+hoOTdQIeQIjV5p8" ]; }