services: fail2ban: migrate to new options
This commit is contained in:
parent
f7490e5bad
commit
2b8341ea9c
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue