diff options
author | Robin Gloster <mail@glob.in> | 2017-11-14 16:49:00 +0100 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2017-11-14 16:49:53 +0100 |
commit | 9181faac41fcf3221353a045bb903e8c1db0557e (patch) | |
tree | a4d196d6e29868f64c27d23dd13a81abe99a7e73 /nixos/modules/services/mail | |
parent | 50103ecdbbe1b99da9cd5e68898ce8757a143aaa (diff) | |
download | nixlib-9181faac41fcf3221353a045bb903e8c1db0557e.tar nixlib-9181faac41fcf3221353a045bb903e8c1db0557e.tar.gz nixlib-9181faac41fcf3221353a045bb903e8c1db0557e.tar.bz2 nixlib-9181faac41fcf3221353a045bb903e8c1db0557e.tar.lz nixlib-9181faac41fcf3221353a045bb903e8c1db0557e.tar.xz nixlib-9181faac41fcf3221353a045bb903e8c1db0557e.tar.zst nixlib-9181faac41fcf3221353a045bb903e8c1db0557e.zip |
dovecot: fix config if mailboxes == []
Diffstat (limited to 'nixos/modules/services/mail')
-rw-r--r-- | nixos/modules/services/mail/dovecot.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/mail/dovecot.nix b/nixos/modules/services/mail/dovecot.nix index 6057acc531a3..18101a312254 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 |