diff --git a/nixos/modules/services/security/fail2ban.nix b/nixos/modules/services/security/fail2ban.nix index 976b01fd10ee..3f84f9c2560c 100644 --- a/nixos/modules/services/security/fail2ban.nix +++ b/nixos/modules/services/security/fail2ban.nix @@ -216,7 +216,7 @@ in config = mkIf cfg.enable { - warnings = mkIf (config.networking.firewall.enable == false || config.networking.nftables.enable == false) [ + warnings = mkIf (config.networking.firewall.enable == false && config.networking.nftables.enable == false) [ "fail2ban can not be used without a firewall" ];