2021-09-22 15:38:15 +00:00
|
|
|
{ config, options, lib, ... }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
|
|
|
|
|
|
|
services.mail = {
|
|
|
|
|
|
|
|
sendmailSetuidWrapper = mkOption {
|
2021-09-22 15:38:15 +00:00
|
|
|
type = types.nullOr options.security.wrappers.type.nestedTypes.elemType;
|
2020-04-24 23:36:52 +00:00
|
|
|
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;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|