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

11 lines
176 B
Nix
Raw Normal View History

2024-10-15 02:40:43 -04:00
{ ... }:
2024-10-09 03:36:08 -04:00
{
services.fail2ban = {
enable = true;
maxretry = 5;
bantime = "5m";
};
environment.persistence."/persist".directories = [ "/var/lib/fail2ban" ];
}