mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-13 20:30:02 +00:00
Merge pull request #616 from gshpychka/patch-1
feat: support writing arrays to system defaults
This commit is contained in:
commit
b8c286c82c
1 changed files with 1 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue