Prereqs: install jsonnet, yaml2jsonnet (optional) and yq:
If you already have .yaml files lying around, or prefer to start with them, you don't have to start from scratch: convert them to jsonnet using yaml2jsonnet
yaml2jsonnet ../config/authelia/configuration.yaml | jsonnetfmt - -o config.authelia.jsonnet
Let that be your starting point. Now edit to your will. If you want to test it (see what it renders) or save it, then:
# preview in the console
jsonnet ./config.authelia.jsonnet | yq -y
# save its yaml render
jsonnet ./config.authelia.jsonnet | yq -y > config.authelia.yaml