1
1
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-08-17 08:30:23 +03:00

Merge pull request #616 from gshpychka/patch-1

feat: support writing arrays to system defaults
This commit is contained in:
Daiderd Jordan 2023-05-22 19:02:28 +02:00 committed by GitHub
commit b8c286c82c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,6 +12,7 @@ let
if isInt value then "-int ${toString value}" else
if isFloat value then "-float ${strings.floatToString value}" else
if isString value then "-string '${value}'" else
if isList value then "-array ${concatStringsSep " " (map (v: writeValue v)value)}" else
throw "invalid value type";
writeDefault = domain: key: value: