forked from mirrors/nixpkgs
nixos/fail2ban: disable work fail2ban without firewall
This commit is contained in:
parent
1e593070cd
commit
c75398b10a
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue