summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorQuentin Smith <quentin@mit.edu>2023-04-19 15:56:46 -0400
committerQuentin Smith <quentin@mit.edu>2023-04-19 16:09:53 -0400
commit73ab8e0d702c9cdda3a92ba3ff95024ff2e70448 (patch)
tree389442d1e0ead643839c275835d8007acd12790e /modules
parent025912529dd0b31dead95519e944ea05f1ad56f2 (diff)
Add/fix some launchd.plist options
Diffstat (limited to 'modules')
-rw-r--r--modules/launchd/launchd.nix26
1 files changed, 23 insertions, 3 deletions
diff --git a/modules/launchd/launchd.nix b/modules/launchd/launchd.nix
index cceaaf0..727db95 100644
--- a/modules/launchd/launchd.nix
+++ b/modules/launchd/launchd.nix
@@ -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 = ''