nixos/rspamd: Avoid empty postfix service

This commit is contained in:
Victor Nawothnig 2021-08-22 03:05:43 +02:00
parent 1c145df9ae
commit 942d78d9cd

View File

@ -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 ];