summary refs log tree commit diff
path: root/nixos/modules/programs/ssmtp.nix
diff options
context:
space:
mode:
authorNathan Bijnens <nathan@nathan.gs>2016-07-23 20:58:58 +0200
committerGitHub <noreply@github.com>2016-07-23 20:58:58 +0200
commitbb528e714d677f619db732fc66795bf0f6375204 (patch)
tree39155ea5a68553c485d0daaa0a74cc4ca1cb4a71 /nixos/modules/programs/ssmtp.nix
parentcf3867a5efbbc36743cc7009e33c872cfe3fa232 (diff)
downloadnixpkgs-bb528e714d677f619db732fc66795bf0f6375204.tar
nixpkgs-bb528e714d677f619db732fc66795bf0f6375204.tar.gz
nixpkgs-bb528e714d677f619db732fc66795bf0f6375204.tar.bz2
nixpkgs-bb528e714d677f619db732fc66795bf0f6375204.tar.lz
nixpkgs-bb528e714d677f619db732fc66795bf0f6375204.tar.xz
nixpkgs-bb528e714d677f619db732fc66795bf0f6375204.tar.zst
nixpkgs-bb528e714d677f619db732fc66795bf0f6375204.zip
Fix #9759 SSMTP sendmail wrapper - cfg instead of full path
Diffstat (limited to 'nixos/modules/programs/ssmtp.nix')
-rw-r--r--nixos/modules/programs/ssmtp.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/programs/ssmtp.nix b/nixos/modules/programs/ssmtp.nix
index ee5ac02d131..f5d1873cc5c 100644
--- a/nixos/modules/programs/ssmtp.nix
+++ b/nixos/modules/programs/ssmtp.nix
@@ -129,7 +129,7 @@ in
 
     environment.systemPackages = [pkgs.ssmtp];
     
-    services.mail.sendmailSetuidWrapper = mkIf networking.defaultMailServer.setSendmail {
+    services.mail.sendmailSetuidWrapper = mkIf cfg.setSendmail {
       program = "sendmail";
       source = "${pkgs.ssmtp}/bin/sendmail";
       setuid = false;