diff options
author | Peter Simons <simons@cryp.to> | 2012-09-21 16:04:46 +0200 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2012-09-21 16:04:46 +0200 |
commit | 4476b875fc0d4b1a59b1f4ab7194fd15ae620921 (patch) | |
tree | 222bc80244ef4eea73c549da6149f1cd90240fdd /modules/services/mail | |
parent | 0573c7fcae7cc06da38895ea3d7b2ca7526720f3 (diff) | |
download | nixlib-4476b875fc0d4b1a59b1f4ab7194fd15ae620921.tar nixlib-4476b875fc0d4b1a59b1f4ab7194fd15ae620921.tar.gz nixlib-4476b875fc0d4b1a59b1f4ab7194fd15ae620921.tar.bz2 nixlib-4476b875fc0d4b1a59b1f4ab7194fd15ae620921.tar.lz nixlib-4476b875fc0d4b1a59b1f4ab7194fd15ae620921.tar.xz nixlib-4476b875fc0d4b1a59b1f4ab7194fd15ae620921.tar.zst nixlib-4476b875fc0d4b1a59b1f4ab7194fd15ae620921.zip |
Add services.dovecot2.extraConfig option to configure arbitrary settings for which NixOS has no direct support.
Diffstat (limited to 'modules/services/mail')
-rw-r--r-- | modules/services/mail/dovecot2.nix | 8 |
1 files changed, 7 insertions, 1 deletions
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"; |