Merge pull request #82801 from Izorkin/fail2ban

nixos/fail2ban: add warning if work fail2ban without firewall
This commit is contained in:
Jörg Thalheim 2020-03-22 08:31:50 +00:00 committed by GitHub
commit 2edf67b62f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 = {