nixpkgs-suyu/nixos/modules/services/mail/mail.nix

34 lines
485 B
Nix
Raw Normal View History

{ config, lib, ... }:
with lib;
{
###### interface
options = {
services.mail = {
sendmailSetuidWrapper = mkOption {
default = null;
2016-03-25 16:08:20 +01:00
internal = true;
description = ''
2016-03-25 16:08:20 +01:00
Configuration for the sendmail setuid wapper.
'';
};
};
};
###### implementation
config = mkIf (config.services.mail.sendmailSetuidWrapper != null) {
2017-01-29 08:58:12 +01:00
security.wrappers.sendmail = config.services.mail.sendmailSetuidWrapper;
};
}