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 {
|
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.systemPackages = [ cfg.package ];
|
||||||
|
|
||||||
environment.etc = {
|
environment.etc = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user