git.iko.soy/typeable/nixpkgs
on master help sign in
postfix service: fix extraMasterConf (#27755)

thanks

commite79d11b623cc956053b9052ee6655d732d193567 authorsshisk <satoshi.shishiku@tuta.io> dateSun 30 Jul 2017, 12:37 (9 years ago) parent25bb529
1 file changed+4−1
nixos/modules/services/mail/postfix.nix+4−1
nixos/modules/services/mail/postfix.nix+4−1
@@ -267,7 +267,7 @@ let
267267 lines = [ sep (formatLine labels) (formatLine labelDefaults) sep ];
268268 in concatStringsSep "\n" lines;
269269
270− in formattedLabels + "\n" + concatMapStringsSep "\n" formatLine masterCf + "\n";
270+ in formattedLabels + "\n" + concatMapStringsSep "\n" formatLine masterCf + "\n" + cfg.extraMasterConf;
271271
272272 headerCheckOptions = { ... }:
273273 {
@@ -839,5 +839,8 @@ in
839839 (mkIf (cfg.extraConfig != "") {
840840 warnings = [ "The services.postfix.extraConfig option was deprecated. Please use services.postfix.config instead." ];
841841 })
842+ (mkIf (cfg.extraMasterConf != "") {
843+ warnings = [ "The services.postfix.extraMasterConf option was deprecated. Please use services.postfix.masterConfig instead." ];
844+ })
842845 ]);
843846}