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

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

35 lines
585 B
Nix
Raw Normal View History

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