diff options
author | Bjørn Forsman <bjorn.forsman@gmail.com> | 2014-08-24 13:54:16 +0200 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2014-09-05 22:56:30 +0200 |
commit | b7a889759dc8e3c2e9f39135ed9febc356630a11 (patch) | |
tree | 502a4d7f2cd7b2c7fa4c3a05d388038537272850 /nixos/modules/services/security | |
parent | b420eeba44c8428bf90f4655d94cc336c49ffec4 (diff) | |
download | nixlib-b7a889759dc8e3c2e9f39135ed9febc356630a11.tar nixlib-b7a889759dc8e3c2e9f39135ed9febc356630a11.tar.gz nixlib-b7a889759dc8e3c2e9f39135ed9febc356630a11.tar.bz2 nixlib-b7a889759dc8e3c2e9f39135ed9febc356630a11.tar.lz nixlib-b7a889759dc8e3c2e9f39135ed9febc356630a11.tar.xz nixlib-b7a889759dc8e3c2e9f39135ed9febc356630a11.tar.zst nixlib-b7a889759dc8e3c2e9f39135ed9febc356630a11.zip |
nixos/fail2ban: don't use types.string (it's deprecated)
I'm not really sure which one of types.lines or types.str that fit better, but I'm going for types.lines because it behaves more like the current type (i.e. have the ability to merge).
Diffstat (limited to 'nixos/modules/services/security')
-rw-r--r-- | nixos/modules/services/security/fail2ban.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/security/fail2ban.nix b/nixos/modules/services/security/fail2ban.nix index 3758652ebddf..c40f41e07d4f 100644 --- a/nixos/modules/services/security/fail2ban.nix +++ b/nixos/modules/services/security/fail2ban.nix @@ -40,7 +40,7 @@ in socket = /run/fail2ban/fail2ban.sock pidfile = /run/fail2ban/fail2ban.pid ''; - type = types.string; + type = types.lines; description = '' The contents of Fail2ban's main configuration file. It's @@ -64,7 +64,7 @@ in maxretry = 5 ''; }; - type = types.attrsOf types.string; + type = types.attrsOf types.lines; description = '' The configuration of each Fail2ban “jail”. A jail |