{lib, ...}: let inherit (lib) mkEnableOption; in { options.modules.programs.ssh.enable = mkEnableOption "ssh"; config = { programs.ssh.startAgent = true; programs.ssh.pubkeyAcceptedKeyTypes = [ "ssh-rsa" "ecdsa-sha2-nistp521" ]; services.openssh = { enable = true; ports = [8997]; settings = { PasswordAuthentication = false; PermitRootLogin = "no"; }; }; }; }