1{ config, lib, pkgs, ... }:
2
3with lib;
4
5{
6
7 ###### interface
8
9 options = {
10
11 services.mail = {
12
13 sendmailSetuidWrapper = mkOption {
14 default = null;
15 internal = true;
16 description = ''
17 Configuration for the sendmail setuid wapper.
18 '';
19 };
20
21 };
22
23 };
24
25 ###### implementation
26
27 config = mkIf (config.services.mail.sendmailSetuidWrapper != null) {
28
29 security.wrappers.sendmail = config.services.mail.sendmailSetuidWrapper;
30
31 };
32
33}