1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-15 17:51:01 +00:00

Add/fix some launchd.plist options

This commit is contained in:
Quentin Smith 2023-04-19 15:56:46 -04:00
parent 025912529d
commit 73ab8e0d70

View file

@ -686,7 +686,7 @@ with lib;
MachServices = mkOption {
default = null;
example = { ResetAtClose = true; };
example = { "org.nixos.service" = { ResetAtClose = true; }; };
description = ''
This optional key is used to specify Mach services to be registered with the Mach bootstrap sub-system.
Each key in this dictionary should be the name of service to be advertised. The value of the key must
@ -695,7 +695,7 @@ with lib;
Finally, for the job itself, the values will be replaced with Mach ports at the time of check-in with
launchd.
'';
type = types.nullOr (types.submodule {
type = types.nullOr (types.attrsOf (types.either types.bool (types.submodule {
options = {
ResetAtClose = mkOption {
type = types.nullOr types.bool;
@ -719,7 +719,7 @@ with lib;
'';
};
};
});
})));
};
LaunchEvents = mkOption {
@ -747,6 +747,26 @@ with lib;
};
};
ServiceIPC = mkOption {
type = types.nullOr types.bool;
default = null;
description = ''
This optional key specifies whether the job participates in advanced
communication with launchd. The default is false. This flag is
incompatible with the inetdCompatibility key.
'';
};
SessionCreate = mkOption {
type = types.nullOr types.bool;
default = null;
description = ''
This key specifies that the job should be spawned into a new security
audit session rather than the default session for the context is belongs
to. See auditon(2) for details.
'';
};
Sockets = mkOption {
default = null;
description = ''