diff options
author | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2012-06-10 15:07:25 +0000 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2012-06-10 15:07:25 +0000 |
commit | 6824f1e0822a8b2e4af949dac49a0ea8580998e8 (patch) | |
tree | e3a325e083fae704b76b25438c5c842840e8c5a5 /modules/services/mail | |
parent | 9b833aafb974b26bde7636a3f827fcade8b4e7ec (diff) | |
download | nixlib-6824f1e0822a8b2e4af949dac49a0ea8580998e8.tar nixlib-6824f1e0822a8b2e4af949dac49a0ea8580998e8.tar.gz nixlib-6824f1e0822a8b2e4af949dac49a0ea8580998e8.tar.bz2 nixlib-6824f1e0822a8b2e4af949dac49a0ea8580998e8.tar.lz nixlib-6824f1e0822a8b2e4af949dac49a0ea8580998e8.tar.xz nixlib-6824f1e0822a8b2e4af949dac49a0ea8580998e8.tar.zst nixlib-6824f1e0822a8b2e4af949dac49a0ea8580998e8.zip |
Making the dovecot2 mail location a nixos option.
svn path=/nixos/trunk/; revision=34421
Diffstat (limited to 'modules/services/mail')
-rw-r--r-- | modules/services/mail/dovecot2.nix | 10 |
1 files changed, 9 insertions, 1 deletions
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"; |