diff options
| author | Domen Kožar <domen@dev.si> | 2023-04-20 18:56:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-20 18:56:12 +0200 |
| commit | b5e76074be5e429e1b3499f03033ee3df4dcbb71 (patch) | |
| tree | 67770279496ff820b3858bd1a0b28ac7dc2ddf5c /modules | |
| parent | f7051807b99be70a12dc3d183b7e535b30c010e3 (diff) | |
| parent | 73ab8e0d702c9cdda3a92ba3ff95024ff2e70448 (diff) | |
Merge pull request #637 from quentinmit/launchd
Add/fix some launchd.plist options
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/launchd/launchd.nix | 26 |
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 = '' |
