NixOS-Config/modules/system/services/general/ssh/fail2ban/default.nix
2024-11-13 06:23:13 -05:00

11 lines
177 B
Nix

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