nixos-config/services/fail2ban.nix

15 lines
246 B
Nix
Raw Normal View History

2021-02-22 15:07:29 +01:00
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.my.services.fail2ban;
in {
options.my.services.fail2ban = {
enable = mkEnableOption "Enable fail2ban";
};
config = mkIf cfg.enable {
services.fail2ban.enable = true;
};
}