{ pkgs, lib, ... }: { services.openssh = { enable = true; openFirewall = true; settings = { PasswordAuthentication = false; KbdInteractiveAuthentication = false; PermitRootLogin = "no"; AllowUsers = ["nick" "gitea"]; MaxAuthTries = 3; PerSourcePenalties = "crash:3600s authfail:3600s max:86400s"; PerSourcePenaltyExemptList = "10.0.0.0/24"; }; }; users.users."nick".openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJwouafzGDRGeMJQbm9ME/1CSkXicdL7TthJjWkhyLYd nick@Theseus" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOdC37ZsslHOM7n3o92e9h8jyqbmm0ox18d40uGX4Duu nicknase27" ]; }