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:
commit
b8c286c82c
@ -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…
Reference in New Issue
Block a user