1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-07 17:41:03 +01:00

lib: add generator for KDL

Added a generator for the KDL document language.
This is in order for home-manager to natively generate
the new config format for zellij, as described in nix-community#3364.

There is not a one to one mapping between KDL and nix types,
but attrset translation is heavily based on KDLs JSON-IN-KDL microsyntax.
The exception here is the `_args` and `_props` arguments, which lets you
specify arguments and properties as described in the spec.

See more here:
- https://kdl.dev/
- https://github.com/kdl-org/kdl/blob/main/SPEC.md

The generator also conforms to the interface from the nixpkgs manual:
https://nixos.org/manual/nixpkgs/stable/#sec-generators

Co-authored-by: Gaetan Lepage <gaetan@glepage.com>
This commit is contained in:
h7x4 2022-11-21 23:05:02 +01:00 committed by Robert Helgesson
parent 36999b8d19
commit fce9dbfeb4
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
7 changed files with 202 additions and 0 deletions

3
.github/CODEOWNERS vendored
View file

@ -16,6 +16,9 @@ Makefile @thiagokokada
/modules/launchd @midchildan
/modules/lib/generators.nix @h7x4
/test/lib/generators @h7x4
/modules/misc/dconf.nix @rycee
/modules/misc/editorconfig.nix @loicreynier