summaryrefslogtreecommitdiff
path: root/modules/launchd
diff options
context:
space:
mode:
authorThane Gill <me@thanegill.com>2024-01-19 15:16:48 -0800
committerThane Gill <me@thanegill.com>2024-01-19 15:45:52 -0800
commit6b27542e861291993ba16f353f9da76b5bc0aa78 (patch)
treeebcf8025a7e7ac87ff75362ca3e5d2e92957b9f5 /modules/launchd
parent74ab0227ee495e526f2dd57ea684b34f6396445a (diff)
Allow launchd serivceConfig.LimitLoadToSessionType to be a list
Per: https://developer.apple.com/library/archive/technotes/tn2083/_index.html#:~:text=If%20you%20want%20to%20run%20in%20more%20than%20one%20session%20type%2C%20you%20can%20set%20LimitLoadToSessionType%20to%20an%20array%2C%20where%20each%20element%20is%20a%20session%20type%20string. LimitLoadToSessionType can also be an array if more than one session type is desired.
Diffstat (limited to 'modules/launchd')
-rw-r--r--modules/launchd/launchd.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/launchd/launchd.nix b/modules/launchd/launchd.nix
index 32fa781..119d4f0 100644
--- a/modules/launchd/launchd.nix
+++ b/modules/launchd/launchd.nix
@@ -91,7 +91,7 @@ with lib;
};
LimitLoadToSessionType = mkOption {
- type = types.nullOr types.str;
+ type = types.nullOr (types.oneOf [types.str (types.listOf types.str)]);
default = null;
description = lib.mdDoc ''
This configuration file only applies to sessions of the type specified. This key is used in concert