services/crowdsec-firewall-bouncer: only use mkIf cfg.enable conditional

This commit is contained in:
2025-10-18 22:44:23 -07:00
parent fba44b786d
commit 80ee346387

View File

@@ -22,7 +22,7 @@ in
enable = mkEnableOption "Enables traefik bouncer for a specified crowdsec instance";
};
config = mkIf (cfg.enable && config.services.crowdsec.enable) {
config = mkIf cfg.enable {
environment.systemPackages = with pkgsUnstable; [
crowdsec-firewall-bouncer
];