lol

fail2ban service: fix formatting of example

+14 -14
+14 -14
nixos/modules/services/security/fail2ban.nix
··· 50 50 51 51 jails = mkOption { 52 52 default = { }; 53 - example = 54 - { "apache-nohome-iptables" = 55 - '' 56 - # Block an IP address if it accesses a non-existent 57 - # home directory more than 5 times in 10 minutes, 58 - # since that indicates that it's scanning. 59 - filter = apache-nohome 60 - action = iptables-multiport[name=HTTP, port="http,https"] 61 - logpath = /var/log/httpd/error_log* 62 - findtime = 600 63 - bantime = 600 64 - maxretry = 5 65 - ''; 66 - }; 53 + example = literalExample '' 54 + { apache-nohome-iptables = ''' 55 + # Block an IP address if it accesses a non-existent 56 + # home directory more than 5 times in 10 minutes, 57 + # since that indicates that it's scanning. 58 + filter = apache-nohome 59 + action = iptables-multiport[name=HTTP, port="http,https"] 60 + logpath = /var/log/httpd/error_log* 61 + findtime = 600 62 + bantime = 600 63 + maxretry = 5 64 + '''; 65 + } 66 + ''; 67 67 type = types.attrsOf types.lines; 68 68 description = 69 69 ''