Add services.dovecot2.extraConfig option to configure arbitrary settings for which NixOS has no direct support.

This commit is contained in:
Peter Simons 2012-09-21 16:04:46 +02:00
parent 0573c7fcae
commit 4476b875fc

View File

@ -43,7 +43,7 @@ let
} }
pop3_uidl_format = %08Xv%08Xu pop3_uidl_format = %08Xv%08Xu
''; '' + cfg.extraConfig;
confFile = pkgs.writeText "dovecot.conf" dovecotConf; confFile = pkgs.writeText "dovecot.conf" dovecotConf;
@ -72,6 +72,12 @@ in
description = "Dovecot group name."; description = "Dovecot group name.";
}; };
extraConfig = mkOption {
default = "";
example = "mail_debug = yes";
description = "Additional entries to put verbatim into Dovecot's config file.";
};
mailLocation = mkOption { mailLocation = mkOption {
default = "maildir:/var/spool/mail/%u"; /* Same as inbox, as postfix */ default = "maildir:/var/spool/mail/%u"; /* Same as inbox, as postfix */
example = "maildir:~/mail:INBOX=/var/spool/mail/%u"; example = "maildir:~/mail:INBOX=/var/spool/mail/%u";