at 23.11-pre 585 B view raw
1{ config, options, lib, ... }: 2 3with lib; 4 5{ 6 7 ###### interface 8 9 options = { 10 11 services.mail = { 12 13 sendmailSetuidWrapper = mkOption { 14 type = types.nullOr options.security.wrappers.type.nestedTypes.elemType; 15 default = null; 16 internal = true; 17 description = lib.mdDoc '' 18 Configuration for the sendmail setuid wapper. 19 ''; 20 }; 21 22 }; 23 24 }; 25 26 ###### implementation 27 28 config = mkIf (config.services.mail.sendmailSetuidWrapper != null) { 29 30 security.wrappers.sendmail = config.services.mail.sendmailSetuidWrapper; 31 32 }; 33 34}