3
0
Fork 0
forked from mirrors/nixpkgs

nixos/fail2ban: disable work fail2ban without firewall

This commit is contained in:
Izorkin 2020-03-17 22:24:48 +03:00
parent 1e593070cd
commit c75398b10a

View file

@ -216,6 +216,10 @@ in
config = mkIf cfg.enable {
warnings = mkIf (config.networking.firewall.enable == false || config.networking.nftables.enable == false) [
"fail2ban can not be used without a firewall"
];
environment.systemPackages = [ cfg.package ];
environment.etc = {