There was an error while loading. Please reload this page.
2 parents 909d38c + b720ed4 commit 07793fbCopy full SHA for 07793fb
1 file changed
modules/nix-darwin/config/config.nix
@@ -19,8 +19,20 @@ let
19
builtins.toString v
20
else if builtins.isFloat v then
21
lib.strings.floatToString v
22
+ # Convert lists of strings like `["foo" "bar"]` into space-separated strings like `foo bar`
23
else if builtins.isList v then
- builtins.toJSON v
24
+ let
25
+ ensureStrings =
26
+ ls:
27
+ lib.forEach ls (
28
+ item:
29
+ if builtins.isString item then
30
+ item
31
+ else
32
+ throw "Expected all list items to be strings but got ${builtins.typeOf item} instead"
33
+ );
34
+ in
35
+ lib.concatStringsSep " " (ensureStrings v)
36
else if lib.isDerivation v then
37
38
else if builtins.isPath v then
0 commit comments