services: fail2ban: migrate to new options

This commit is contained in:
Antoine Martin 2023-12-05 09:31:24 +01:00
parent f7490e5bad
commit 2b8341ea9c

View file

@ -19,11 +19,9 @@ in {
config = mkIf cfg.enable {
services.fail2ban = {
enable = true;
bantime = "6h";
bantime-increment.enable = true;
jails.DEFAULT = ''
bantime = 6h
findtime = 6h
'';
jails.DEFAULT.settings.findtime = "6h";
};
};
}