NixOS-Config/modules/system/services/general/ssh/fail2ban/default.nix

11 lines
176 B
Nix

{ ... }:
{
services.fail2ban = {
enable = true;
maxretry = 5;
bantime = "5m";
};
environment.persistence."/persist".directories = [ "/var/lib/fail2ban" ];
}