Merge pull request #455 from eqyiel/add-launchevents
feat: add serviceConfig.LaunchEvents configuration option
This commit is contained in:
commit
175e7c23b9
1 changed files with 25 additions and 0 deletions
|
|
@ -708,6 +708,31 @@ with lib;
|
|||
});
|
||||
};
|
||||
|
||||
LaunchEvents = mkOption {
|
||||
type = types.nullOr (types.attrs);
|
||||
default = null;
|
||||
description = ''
|
||||
Specifies higher-level event types to be used as launch-on-demand event
|
||||
sources. Each sub-dictionary defines events for a particular event
|
||||
subsystem, such as "com.apple.iokit.match-ing", which can be used to
|
||||
launch jobs based on the appearance of nodes in the IORegistry. Each
|
||||
dictionary within the sub-dictionary specifies an event descriptor that
|
||||
is specified to each event subsystem. With this key, the job promises to
|
||||
use the xpc_set_event_stream_handler(3) API to consume events. See
|
||||
xpc_events(3) for more details on event sources.
|
||||
'';
|
||||
example = {
|
||||
"com.apple.iokit.matching" = {
|
||||
"com.apple.usb.device" = {
|
||||
IOMatchLaunchStream = true;
|
||||
IOProviderClass = "IOUSBDevice";
|
||||
idProduct = "*";
|
||||
idVendor = "*";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Sockets = mkOption {
|
||||
default = null;
|
||||
description = ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue