mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
34 lines
485 B
Nix
34 lines
485 B
Nix
{ config, lib, ... }:
|
|
|
|
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.sendmail = config.services.mail.sendmailSetuidWrapper;
|
|
|
|
};
|
|
|
|
}
|