{ pkgs, lib, ... }: { services = { openssh = { enable = true; settings = { PasswordAuthentication = false; PermitRootLogin = "no"; }; }; fail2ban = { enable = true; bantime = "1h"; }; }; }