Commit Graph

3 Commits

Author SHA1 Message Date
DavHau
f4a79d08d7 feat(all-formats.nix): add formatConfigs
While the `all-formats.nix` module allows to import all formats at once, it lacks an interface to customize formats or add formats.

This is fixed by adding the top-level option `formatConfigs` (attrsOf deferredModule).

All format modules created under `config.formatConfigs` are mapped so their outputs are available under `config.formats` which has also been moved to the top-level (previously `config.system.formats`).

Done:
- add option `formatConfigs`
- move option `system.formats` -> `formats`
- add test for customizing a format
2023-07-03 11:54:20 +03:00
DavHau
435e0d366f add checks for al formats 2023-05-29 11:05:09 +02:00
DavHau
9665903cf8 add all-formats.nix 2023-05-29 10:23:37 +02:00