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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
583 B
Nix
Raw Normal View History

{
config,
options,
lib,
...
}:
{
###### interface
options = {
services.mail = {
sendmailSetuidWrapper = lib.mkOption {
type = lib.types.nullOr options.security.wrappers.type.nestedTypes.elemType;
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 = lib.mkIf (config.services.mail.sendmailSetuidWrapper != null) {
2017-01-29 01:58:12 -06:00
security.wrappers.sendmail = config.services.mail.sendmailSetuidWrapper;
};
}