hyprspace/docs/content/Development/config-schema.md
Max 76a3f73a42
Build and installation docs (#47)
* README: document basic build/setup steps

* document dev setup and how the config schema works

* set up for use with direnv

* mention direnv in the dev setup docs

* README: mention developer docs

* provide some contributor infos
2024-07-15 17:51:14 +00:00

599 B

Configuration Schema

The schema for the configuration file is defined in nixos/settings.nix. This schema is used for

  • generating Go code so Hyprspace can parse the configuration
  • typed configuration in the NixOS module
  • generating the configuration

The conversion to Go code happens by first converting the module options to a JSON schema using clan.lol's NixOS to JSON schema converter. The JSON schema is then used to generate Go code using go-jsonschema.