nixpkgs/nixos/modules/services/mail/mail.nix
2017-01-28 20:48:03 -08:00

33 lines
493 B
Nix

{ 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.wrappers.setuid = [ config.services.mail.sendmailSetuidWrapper ];
};
}