From 9181faac41fcf3221353a045bb903e8c1db0557e Mon Sep 17 00:00:00 2001 From: Robin Gloster Date: Tue, 14 Nov 2017 16:49:00 +0100 Subject: [PATCH] dovecot: fix config if mailboxes == [] --- nixos/modules/services/mail/dovecot.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/mail/dovecot.nix b/nixos/modules/services/mail/dovecot.nix index 6057acc531a..18101a31225 100644 --- a/nixos/modules/services/mail/dovecot.nix +++ b/nixos/modules/services/mail/dovecot.nix @@ -62,14 +62,14 @@ let } '') - '' + (optionalString (cfg.mailboxes != []) '' protocol imap { namespace inbox { inbox=yes ${concatStringsSep "\n" (map mailboxConfig cfg.mailboxes)} } } - '' + '') (optionalString cfg.enableQuota '' mail_plugins = $mail_plugins quota