svn path=/nixos/trunk/; revision=24193wip/yesman
parent
f9d4df1e04
commit
a069fcffc6
@ -0,0 +1,33 @@ |
||||
{ 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 ]; |
||||
|
||||
}; |
||||
|
||||
} |
Loading…
Reference in new issue