[Nix-dev] PATCH: postfix extraConfig

Florian Friesdorf flo at chaoflow.net
Sun Jan 2 18:32:26 CET 2011


attached a path to implement postfix.extraConfig

-- 
Florian Friesdorf <flo at chaoflow.net>
  GPG FPR: 7A13 5EEE 1421 9FC2 108D  BAAF 38F8 99A3 0C45 F083
Jabber/XMPP: flo at chaoflow.net
IRC: chaoflow on freenode,ircnet,blafasel,OFTC
-------------- next part --------------
From 5c8f207c85739d6883dc4c1035717414bcfb4fa9 Mon Sep 17 00:00:00 2001
From: Florian Friesdorf <flo at chaoflow.net>
Date: Fri, 31 Dec 2010 15:51:19 +0100
Subject: [PATCH 3/3] postfix.nix: extraConfig

---
 modules/services/mail/postfix.nix |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/modules/services/mail/postfix.nix b/modules/services/mail/postfix.nix
index 3eda558..3a28e81 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.";
-- 
1.7.3.2



More information about the nix-dev mailing list