From 6b27542e861291993ba16f353f9da76b5bc0aa78 Mon Sep 17 00:00:00 2001 From: Thane Gill Date: Fri, 19 Jan 2024 15:16:48 -0800 Subject: [PATCH] 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. --- modules/launchd/launchd.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/launchd/launchd.nix b/modules/launchd/launchd.nix index 32fa78155..119d4f0a0 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