b450903751
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
34 lines
585 B
Nix
34 lines
585 B
Nix
{ config, options, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
|
|
###### interface
|
|
|
|
options = {
|
|
|
|
services.mail = {
|
|
|
|
sendmailSetuidWrapper = mkOption {
|
|
type = types.nullOr options.security.wrappers.type.nestedTypes.elemType;
|
|
default = null;
|
|
internal = true;
|
|
description = lib.mdDoc ''
|
|
Configuration for the sendmail setuid wapper.
|
|
'';
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
###### implementation
|
|
|
|
config = mkIf (config.services.mail.sendmailSetuidWrapper != null) {
|
|
|
|
security.wrappers.sendmail = config.services.mail.sendmailSetuidWrapper;
|
|
|
|
};
|
|
|
|
}
|