mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 00:54:46 +00:00
eb6e1310b8
svn path=/nixos/trunk/; revision=29285
34 lines
521 B
Nix
34 lines
521 B
Nix
{ config, pkgs, ... }:
|
|
|
|
with pkgs.lib;
|
|
|
|
{
|
|
|
|
###### interface
|
|
|
|
options = {
|
|
|
|
services.mail = {
|
|
|
|
sendmailSetuidWrapper = mkOption {
|
|
default = null;
|
|
description = ''
|
|
Configuration for the sendmail setuid wrwapper (like an element of
|
|
security.setuidOwners)";
|
|
'';
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
###### implementation
|
|
|
|
config = mkIf (config.services.mail.sendmailSetuidWrapper != null) {
|
|
|
|
security.setuidOwners = [ config.services.mail.sendmailSetuidWrapper ];
|
|
|
|
};
|
|
|
|
}
|