mirror of
https://github.com/hyprspace/hyprspace.git
synced 2026-09-13 18:46:29 +05:00
600 B
600 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 config documentation
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.