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