From d6e9b8d66f4f0773337f486dd5c6cd6e135e9036 Mon Sep 17 00:00:00 2001 From: Victor Nawothnig Date: Sun, 22 Aug 2021 03:05:43 +0200 Subject: [PATCH] nixos/rspamd: Avoid empty postfix service (cherry picked from commit 942d78d9cdac3826059cbf351932cd5bcf1c315f) --- nixos/modules/services/mail/rspamd.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/mail/rspamd.nix b/nixos/modules/services/mail/rspamd.nix index 473ddd52357..c78f464235a 100644 --- a/nixos/modules/services/mail/rspamd.nix +++ b/nixos/modules/services/mail/rspamd.nix @@ -371,8 +371,9 @@ in }; services.postfix.config = mkIf cfg.postfix.enable cfg.postfix.config; - systemd.services.postfix.serviceConfig.SupplementaryGroups = - mkIf cfg.postfix.enable [ postfixCfg.group ]; + systemd.services.postfix = mkIf cfg.postfix.enable { + serviceConfig.SupplementaryGroups = [ postfixCfg.group ]; + }; # Allow users to run 'rspamc' and 'rspamadm'. environment.systemPackages = [ pkgs.rspamd ];