about summary refs log tree commit diff
path: root/lib/generators.nix
Commit message (Collapse)AuthorAge
* lib/generators: mkKeyValueLine -> mkKeyValueLine (#20920)Profpatsch2016-12-06
| | | Rename, since the previous name was potentially confusing.
* lib/generators: add toKeyValue & mkKeyValueLine (#20903)Profpatsch2016-12-04
| | | | generators for the common use case of simple config files which hold keys and values. Used in the implementation for toINI.
* lib/generators: add manual documentationProfpatsch2016-11-17
| | | | Restructures the functions reference a bit.
* lib: add generator functions for toJSON & toYAMLProfpatsch2016-11-17
| | | | | | | | | They both reference the toJSON builtin, so we get semantic identifiers that express the intent of the generation. Both should be able to map each nix value (minus functions) to the destination config files. Includes two invocation unit tests.
* lib: add ini configuration generatorProfpatsch2016-11-17
Many configurations are INI-style files. Attribute sets can be mapped rather painlessly to the INI format. This adds a function toINI inside a new generators library section. Also, unit tests for the default values are provided.