From 7f94b9e9c6ee43233269ea42cc9863abd38254dd Mon Sep 17 00:00:00 2001 From: Sandro Jäckel Date: Sat, 21 Oct 2023 02:33:09 +0200 Subject: nixos/fail2ban: change bantime default to not be config breaking --- nixos/modules/services/security/fail2ban.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nixos/modules/services/security') diff --git a/nixos/modules/services/security/fail2ban.nix b/nixos/modules/services/security/fail2ban.nix index 7059284850a5..235f29ab8a6a 100644 --- a/nixos/modules/services/security/fail2ban.nix +++ b/nixos/modules/services/security/fail2ban.nix @@ -103,9 +103,9 @@ in }; bantime = mkOption { - default = null; - type = types.nullOr types.str; - example = "10m"; + default = "10m"; + type = types.str; + example = "1h"; description = lib.mdDoc "Number of seconds that a host is banned."; }; -- cgit 1.4.1