From d30701f2f17c18ca3096327dea5a6d09e26e8721 Mon Sep 17 00:00:00 2001 From: Rickard Nilsson Date: Wed, 22 Sep 2021 22:01:39 +0200 Subject: [PATCH] nixos/opensmtpd: Add missing brackets in config (#138989) * nixos/opensmtpd: Add missing brackets in config Without this commit, you end up missing the sendmail suid wrapper, because the "program" attribute would not override the right thing. * Update nixos/modules/services/mail/opensmtpd.nix Co-authored-by: Sandro --- nixos/modules/services/mail/opensmtpd.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/mail/opensmtpd.nix b/nixos/modules/services/mail/opensmtpd.nix index dc209e8add4e..ef7d53e7d927 100644 --- a/nixos/modules/services/mail/opensmtpd.nix +++ b/nixos/modules/services/mail/opensmtpd.nix @@ -111,7 +111,7 @@ in { }; services.mail.sendmailSetuidWrapper = mkIf cfg.setSendmail - security.wrappers.smtpctl // { program = "sendmail"; }; + (security.wrappers.smtpctl // { program = "sendmail"; }); systemd.tmpfiles.rules = [ "d /var/spool/smtpd 711 root - - -"