1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs synced 2024-10-22 20:10:32 -04:00
nixpkgs/nixos/modules/services/mail/mail.nix

34 lines
490 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
with lib;
{
###### interface
options = {
services.mail = {
sendmailSetuidWrapper = mkOption {
default = null;
2016-03-25 11:08:20 -04:00
internal = true;
description = ''
2016-03-25 11:08:20 -04:00
Configuration for the sendmail setuid wapper.
'';
};
};
};
###### implementation
config = mkIf (config.services.mail.sendmailSetuidWrapper != null) {
security.setuidOwners = [ config.services.mail.sendmailSetuidWrapper ];
};
}