mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
32 lines
575 B
Nix
32 lines
575 B
Nix
{ config, options, lib, ... }:
|
|
{
|
|
|
|
###### interface
|
|
|
|
options = {
|
|
|
|
services.mail = {
|
|
|
|
sendmailSetuidWrapper = lib.mkOption {
|
|
type = lib.types.nullOr options.security.wrappers.type.nestedTypes.elemType;
|
|
default = null;
|
|
internal = true;
|
|
description = ''
|
|
Configuration for the sendmail setuid wapper.
|
|
'';
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
###### implementation
|
|
|
|
config = lib.mkIf (config.services.mail.sendmailSetuidWrapper != null) {
|
|
|
|
security.wrappers.sendmail = config.services.mail.sendmailSetuidWrapper;
|
|
|
|
};
|
|
|
|
}
|