Author: raskin
Date: Sun Jan  2 18:49:11 2011
New Revision: 25345
URL: https://svn.nixos.org/websvn/nix/?rev=25345&sc=1

Log:
Applying patch by chaoflow to get create services.postfix.extraConfig

Modified:
   nixos/trunk/modules/services/mail/postfix.nix

Modified: nixos/trunk/modules/services/mail/postfix.nix
==============================================================================
--- nixos/trunk/modules/services/mail/postfix.nix       Sun Jan  2 18:43:27 
2011        (r25344)
+++ nixos/trunk/modules/services/mail/postfix.nix       Sun Jan  2 18:49:11 
2011        (r25345)
@@ -81,8 +81,8 @@
       smtpd_use_tls = yes 
 
       recipientDelimiter = ${cfg.recipientDelimiter}
-
-    '';
+    ''
+    + cfg.extraConfig;
 
   aliases = 
     optionalString (cfg.postmasterAlias != "") ''
@@ -227,6 +227,13 @@
         ";
       };
 
+      extraConfig = mkOption {
+        default = "";
+        description = "
+          Extra configuration, will be added verbatim to the configuration 
file.
+        ";
+      };
+
       sslCert = mkOption {
         default = "";
         description = "SSL certificate to use.";
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to