summary refs log tree commit diff
path: root/nixos/modules/services/mail/mail.nix
blob: e8b16349f1a55a42c2b9c64d0e019e844c1080c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ config, lib, pkgs, ... }:

with lib;

{

  ###### interface

  options = {

    services.mail = {

      sendmailSetuidWrapper = mkOption {
        default = null;
        internal = true;
        description = ''
          Configuration for the sendmail setuid wapper.
        '';
      };

    };

  };

  ###### implementation

  config = mkIf (config.services.mail.sendmailSetuidWrapper != null) {

    security.permissionsWrappers.setuid = [ config.services.mail.sendmailSetuidWrapper ];

  };

}