chore: change how fail2ban is disabled

This commit is contained in:
Nydragon 2025-01-13 12:47:36 +01:00
parent 6f62169be6
commit 872a31dc88
Signed by: nydragon
SSH key fingerprint: SHA256:WcjW5NJPQ8Dx4uQDmoIlVPLWE27Od3fxoe0IUvuoPHE

View file

@ -1,9 +1,16 @@
{ pkgs, ... }:
{
config = {
pkgs,
lib,
config,
...
}:
let
inherit (lib) mkIf;
cfg = config.services.fail2ban;
in
{
config = mkIf cfg.enable {
services.fail2ban = {
enable = false;
extraPackages = with pkgs; [ nftables ];
maxretry = 5;
bantime = "10m";