AquaticOS/modules/services/fail2ban/fail2ban.nix
2026-06-02 16:14:09 -04:00

13 lines
No EOL
241 B
Nix

{ ... }:
{
flake.modules.nixos.fail2ban =
{ pkgs, ... }:
{
services.fail2ban = {
enable = true;
bantime = "1h";
maxretry = 5;
ignoreIP = [ "192.168.0.0/24" ]; # your whole LAN — whitelisted
};
};
}