From edb40b3e4f35d89a9209de191c2edcb4e56f8e50 Mon Sep 17 00:00:00 2001 From: Izorkin Date: Wed, 26 Apr 2023 23:08:37 +0300 Subject: [PATCH] nixos/fail2ban: others small update --- nixos/modules/services/security/fail2ban.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/security/fail2ban.nix b/nixos/modules/services/security/fail2ban.nix index 22cceda38dd..eebf2a2f7b5 100644 --- a/nixos/modules/services/security/fail2ban.nix +++ b/nixos/modules/services/security/fail2ban.nix @@ -285,7 +285,7 @@ in } ]; - warnings = mkIf (config.networking.firewall.enable == false && config.networking.nftables.enable == false) [ + warnings = mkIf (!config.networking.firewall.enable && !config.networking.nftables.enable) [ "fail2ban can not be used without a firewall" ];