chore: change how fail2ban is disabled
This commit is contained in:
parent
6f62169be6
commit
872a31dc88
1 changed files with 11 additions and 4 deletions
|
@ -1,9 +1,16 @@
|
||||||
{ pkgs, ... }:
|
|
||||||
{
|
{
|
||||||
config = {
|
pkgs,
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
inherit (lib) mkIf;
|
||||||
|
cfg = config.services.fail2ban;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = mkIf cfg.enable {
|
||||||
services.fail2ban = {
|
services.fail2ban = {
|
||||||
enable = false;
|
|
||||||
|
|
||||||
extraPackages = with pkgs; [ nftables ];
|
extraPackages = with pkgs; [ nftables ];
|
||||||
maxretry = 5;
|
maxretry = 5;
|
||||||
bantime = "10m";
|
bantime = "10m";
|
||||||
|
|
Loading…
Add table
Reference in a new issue