diff options
author | Shea Levy <shea@shealevy.com> | 2014-02-20 06:17:15 -0500 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2014-02-20 06:17:15 -0500 |
commit | 2b92e90f91c8c50ccb1d9a7a84c71aee6e51be60 (patch) | |
tree | d8bf3d53772a15cc8aad61cd9c23f8e6c0aab52a /nixos/modules/services/mail | |
parent | 676f44eb047d19566d851c5c70162adf861526dc (diff) | |
download | nixlib-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.nix | 5 |
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 + '') ]; }; } |