From 4476b875fc0d4b1a59b1f4ab7194fd15ae620921 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 21 Sep 2012 16:04:46 +0200 Subject: [PATCH] Add services.dovecot2.extraConfig option to configure arbitrary settings for which NixOS has no direct support. --- modules/services/mail/dovecot2.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/services/mail/dovecot2.nix b/modules/services/mail/dovecot2.nix index c1f21ba457f1..fc97e0d3ad0b 100644 --- a/modules/services/mail/dovecot2.nix +++ b/modules/services/mail/dovecot2.nix @@ -43,7 +43,7 @@ let } pop3_uidl_format = %08Xv%08Xu - ''; + '' + cfg.extraConfig; confFile = pkgs.writeText "dovecot.conf" dovecotConf; @@ -72,6 +72,12 @@ in description = "Dovecot group name."; }; + extraConfig = mkOption { + default = ""; + example = "mail_debug = yes"; + description = "Additional entries to put verbatim into Dovecot's config file."; + }; + mailLocation = mkOption { default = "maildir:/var/spool/mail/%u"; /* Same as inbox, as postfix */ example = "maildir:~/mail:INBOX=/var/spool/mail/%u";