From 6824f1e0822a8b2e4af949dac49a0ea8580998e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Sun, 10 Jun 2012 15:07:25 +0000 Subject: [PATCH] Making the dovecot2 mail location a nixos option. svn path=/nixos/trunk/; revision=34421 --- modules/services/mail/dovecot2.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/services/mail/dovecot2.nix b/modules/services/mail/dovecot2.nix index c7ae59afa203..c5f5da41d317 100644 --- a/modules/services/mail/dovecot2.nix +++ b/modules/services/mail/dovecot2.nix @@ -25,7 +25,7 @@ let + '' default_internal_user = ${cfg.user} - mail_location = maildir:/var/spool/mail/%u + mail_location = ${cfg.mailLocation} maildir_copy_with_hardlinks = yes @@ -76,6 +76,14 @@ in description = "Dovecot group name."; }; + mailLocation = mkOption { + default = "maildir:/var/spool/mail/%u"; /* Same as inbox, as postfix */ + example = "maildir:~/mail:INBOX=/var/spool/mail/%u"; + description = '' + Location that dovecot will use for mail folders. Dovecot mail_location option. + ''; + }; + sslServerCert = mkOption { default = ""; description = "Server certificate";