1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 11:10:03 +00:00

doc: add arguments for toKeyValue

This commit is contained in:
Johannes Kirschbauer 2024-05-21 22:05:18 +02:00
parent 8ee634f5a6
commit 793ed729f2
No known key found for this signature in database

View file

@ -155,8 +155,20 @@ in rec {
/**
Generate a key-value-style config file from an attrset.
*
* mkKeyValue is the same as in toINI.
# Inputs
Structured function argument
: mkKeyValue (optional, default: `mkKeyValueDefault {} "="`)
: format a setting line from key and value
: listsAsDuplicateKeys (optional, default: `false`)
: allow lists as values for duplicate keys
: indent (optional, default: `""`)
: Initial indentation level
*/
toKeyValue = {
mkKeyValue ? mkKeyValueDefault {} "=",