summary refs log tree commit diff
path: root/nixos/modules/services/mail
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2014-02-20 06:17:15 -0500
committerShea Levy <shea@shealevy.com>2014-02-20 06:17:15 -0500
commit2b92e90f91c8c50ccb1d9a7a84c71aee6e51be60 (patch)
treed8bf3d53772a15cc8aad61cd9c23f8e6c0aab52a /nixos/modules/services/mail
parent676f44eb047d19566d851c5c70162adf861526dc (diff)
downloadnixlib-2b92e90f91c8c50ccb1d9a7a84c71aee6e51be60.tar
nixlib-2b92e90f91c8c50ccb1d9a7a84c71aee6e51be60.tar.gz
nixlib-2b92e90f91c8c50ccb1d9a7a84c71aee6e51be60.tar.bz2
nixlib-2b92e90f91c8c50ccb1d9a7a84c71aee6e51be60.tar.lz
nixlib-2b92e90f91c8c50ccb1d9a7a84c71aee6e51be60.tar.xz
nixlib-2b92e90f91c8c50ccb1d9a7a84c71aee6e51be60.tar.zst
nixlib-2b92e90f91c8c50ccb1d9a7a84c71aee6e51be60.zip
opensmtpd: Add sendmail to systemPackages
Diffstat (limited to 'nixos/modules/services/mail')
-rw-r--r--nixos/modules/services/mail/opensmtpd.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/modules/services/mail/opensmtpd.nix b/nixos/modules/services/mail/opensmtpd.nix
index 2732fd602004..0c18c464520d 100644
--- a/nixos/modules/services/mail/opensmtpd.nix
+++ b/nixos/modules/services/mail/opensmtpd.nix
@@ -79,5 +79,10 @@ in {
       preStart = "mkdir -p /var/spool";
       serviceConfig.ExecStart = "${opensmtpd}/sbin/smtpd -d -f ${conf} ${args}";
     };
+
+    environment.systemPackages = [ (pkgs.runCommand "opensmtpd-sendmail" {} ''
+      mkdir -p $out/bin
+      ln -s ${opensmtpd}/sbin/smtpctl $out/bin/sendmail
+    '') ];
   };
 }