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

11 lines
177 B
Nix
Raw Permalink 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;
2024-11-13 06:23:13 -05:00
bantime = "10m";
};
environment.persistence."/persist".directories = [ "/var/lib/fail2ban" ];
}