diff options
| author | Glib Shpychka <23005347+gshpychka@users.noreply.github.com> | 2023-03-14 14:50:10 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-14 14:50:10 +0200 |
| commit | 9f93b195853a275668e013d330d7bdd59e6c4b49 (patch) | |
| tree | b2d0f5046aa9b96b86ee769aa5bd867aa04f0196 /modules/system | |
| parent | 87b9d090ad39b25b2400029c64825fc2a8868943 (diff) | |
feat: support writing arrays to system defaults
Diffstat (limited to 'modules/system')
| -rw-r--r-- | modules/system/defaults-write.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/system/defaults-write.nix b/modules/system/defaults-write.nix index 8d8f57e..defe41d 100644 --- a/modules/system/defaults-write.nix +++ b/modules/system/defaults-write.nix @@ -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: |
