services: fail2ban: migrate to new options
This commit is contained in:
parent
f7490e5bad
commit
2b8341ea9c
|
@ -19,11 +19,9 @@ in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
services.fail2ban = {
|
services.fail2ban = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
bantime = "6h";
|
||||||
bantime-increment.enable = true;
|
bantime-increment.enable = true;
|
||||||
jails.DEFAULT = ''
|
jails.DEFAULT.settings.findtime = "6h";
|
||||||
bantime = 6h
|
|
||||||
findtime = 6h
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue