summary refs log blame commit diff
path: root/nixos/modules/services/mail/mail.nix
blob: fed313e4738efb08e11897287a8762627727e1d9 (plain) (tree)
1
2
3
4
5
6
7
8
9
                     
 
         





                  
 
                     
 

                                        
                        
                        
                                                       










                                                                      
                                                                            



    
{ config, lib, ... }:

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.wrappers.sendmail = config.services.mail.sendmailSetuidWrapper;

  };

}