mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-10-26 22:08:03 +03:00
Merge pull request #616 from gshpychka/patch-1
feat: support writing arrays to system defaults
This commit is contained in:
commit
b8c286c82c
@ -12,6 +12,7 @@ let
|
|||||||
if isInt value then "-int ${toString value}" else
|
if isInt value then "-int ${toString value}" else
|
||||||
if isFloat value then "-float ${strings.floatToString value}" else
|
if isFloat value then "-float ${strings.floatToString value}" else
|
||||||
if isString value then "-string '${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";
|
throw "invalid value type";
|
||||||
|
|
||||||
writeDefault = domain: key: value:
|
writeDefault = domain: key: value:
|
||||||
|
Loading…
Reference in New Issue
Block a user