11 lines
176 B
Nix
11 lines
176 B
Nix
{ ... }:
|
|
{
|
|
services.fail2ban = {
|
|
enable = true;
|
|
maxretry = 5;
|
|
bantime = "5m";
|
|
};
|
|
|
|
environment.persistence."/persist".directories = [ "/var/lib/fail2ban" ];
|
|
}
|