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

10 lines
160 B
Nix

{ outputs, ... }:
{
services.fail2ban = {
enable = true;
maxretry = 5;
bantime = "5m";
ignoreIP = [ "${outputs.ips.localSpan}.0/24" ];
};
}