about summary refs log tree commit diff
path: root/nixos/modules/services
diff options
context:
space:
mode:
authorReno Reckling <exi@wthack.de>2024-01-19 07:14:59 +0100
committerGitHub <noreply@github.com>2024-01-19 07:14:59 +0100
commit33ede4cc7c7061c90788fe94f98ee9652fb39e1e (patch)
tree6694343e53aaa75498fe6e80a7528f4685adb34f /nixos/modules/services
parent9c5b8fe008290a3e1cd174b7d6e85cdaf590d0bb (diff)
downloadnixlib-33ede4cc7c7061c90788fe94f98ee9652fb39e1e.tar
nixlib-33ede4cc7c7061c90788fe94f98ee9652fb39e1e.tar.gz
nixlib-33ede4cc7c7061c90788fe94f98ee9652fb39e1e.tar.bz2
nixlib-33ede4cc7c7061c90788fe94f98ee9652fb39e1e.tar.lz
nixlib-33ede4cc7c7061c90788fe94f98ee9652fb39e1e.tar.xz
nixlib-33ede4cc7c7061c90788fe94f98ee9652fb39e1e.tar.zst
nixlib-33ede4cc7c7061c90788fe94f98ee9652fb39e1e.zip
use concatMapStringsSep in dovecot config
Co-authored-by: h7x4 <h7x4@nani.wtf>
Diffstat (limited to 'nixos/modules/services')
-rw-r--r--nixos/modules/services/mail/dovecot.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/mail/dovecot.nix b/nixos/modules/services/mail/dovecot.nix
index 58303565c53b..79c8fec75252 100644
--- a/nixos/modules/services/mail/dovecot.nix
+++ b/nixos/modules/services/mail/dovecot.nix
@@ -120,8 +120,8 @@ let
       plugin {
         sieve_plugins = ${concatStringsSep " " cfg.sieve.plugins}
     ''
-    (optionalString (cfg.sieve.extensions != []) ''sieve_extensions = ${concatStringsSep " " (map (el: "+${el}") cfg.sieve.extensions)}'')
-    (optionalString (cfg.sieve.globalExtensions != []) ''sieve_global_extensions = ${concatStringsSep " " (map (el: "+${el}") cfg.sieve.globalExtensions)}'')
+    (optionalString (cfg.sieve.extensions != []) ''sieve_extensions = ${concatMapStringsSep " " (el: "+${el}") cfg.sieve.extensions}'')
+    (optionalString (cfg.sieve.globalExtensions != []) ''sieve_global_extensions = ${concatMapStringsSep " " (el: "+${el}") cfg.sieve.globalExtensions}'')
 
     (optionalString (cfg.imapsieve.mailbox != []) ''
       ${