summary refs log tree commit diff
path: root/nixos/modules/programs/ssmtp.nix
diff options
context:
space:
mode:
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;