mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
34 lines
490 B
Nix
34 lines
490 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.setuidOwners = [ config.services.mail.sendmailSetuidWrapper ];
|
|
|
|
};
|
|
|
|
}
|