From 23f98ee250184ebff56ea0cd19c1e0bd7ddbf648 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Sun, 2 Jan 2011 18:49:11 +0000 Subject: [PATCH] Applying patch by chaoflow to get create services.postfix.extraConfig svn path=/nixos/trunk/; revision=25345 --- modules/services/mail/postfix.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/modules/services/mail/postfix.nix b/modules/services/mail/postfix.nix index 3eda558f1c50..3a28e81eb155 100644 --- a/modules/services/mail/postfix.nix +++ b/modules/services/mail/postfix.nix @@ -81,8 +81,8 @@ let smtpd_use_tls = yes recipientDelimiter = ${cfg.recipientDelimiter} - - ''; + '' + + cfg.extraConfig; aliases = optionalString (cfg.postmasterAlias != "") '' @@ -227,6 +227,13 @@ in "; }; + extraConfig = mkOption { + default = ""; + description = " + Extra configuration, will be added verbatim to the configuration file. + "; + }; + sslCert = mkOption { default = ""; description = "SSL certificate to use.";