summary refs log tree commit diff
path: root/nixos/modules/services/mail/dovecot.nix
diff options
context:
space:
mode:
authorSymphorien Gibol <symphorien+git@xlumurb.eu>2020-07-15 12:00:00 +0000
committerSymphorien Gibol <symphorien+git@xlumurb.eu>2020-08-28 22:24:04 +0200
commit7200fde2d5bfadfea69c57e700a8fac4c5e18a8e (patch)
tree94f12da7fc60cc4999f891613bf9192d47dc4abb /nixos/modules/services/mail/dovecot.nix
parent2f5277d92eca0b19096255a67c65bd4864ae54c1 (diff)
downloadnixpkgs-7200fde2d5bfadfea69c57e700a8fac4c5e18a8e.tar
nixpkgs-7200fde2d5bfadfea69c57e700a8fac4c5e18a8e.tar.gz
nixpkgs-7200fde2d5bfadfea69c57e700a8fac4c5e18a8e.tar.bz2
nixpkgs-7200fde2d5bfadfea69c57e700a8fac4c5e18a8e.tar.lz
nixpkgs-7200fde2d5bfadfea69c57e700a8fac4c5e18a8e.tar.xz
nixpkgs-7200fde2d5bfadfea69c57e700a8fac4c5e18a8e.tar.zst
nixpkgs-7200fde2d5bfadfea69c57e700a8fac4c5e18a8e.zip
nixos/dovecot: configure mailboxes for all processes
Notably fts plugins need them for fts_autoindex_exclude = \SomeFlag
Diffstat (limited to 'nixos/modules/services/mail/dovecot.nix')
-rw-r--r--nixos/modules/services/mail/dovecot.nix8
1 files changed, 3 insertions, 5 deletions
diff --git a/nixos/modules/services/mail/dovecot.nix b/nixos/modules/services/mail/dovecot.nix
index c166ef68f29..f5c5f795dc1 100644
--- a/nixos/modules/services/mail/dovecot.nix
+++ b/nixos/modules/services/mail/dovecot.nix
@@ -84,11 +84,9 @@ let
 
     (
       optionalString (cfg.mailboxes != {}) ''
-        protocol imap {
-          namespace inbox {
-            inbox=yes
-            ${concatStringsSep "\n" (map mailboxConfig (attrValues cfg.mailboxes))}
-          }
+        namespace inbox {
+          inbox=yes
+          ${concatStringsSep "\n" (map mailboxConfig (attrValues cfg.mailboxes))}
         }
       ''
     )