mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
34 lines
527 B
Nix
34 lines
527 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 ];
|
||
|
|
||
|
};
|
||
|
|
||
|
}
|