docs(nixgen): schemars-nixgen has a README, and the docs say how to run it

This commit is contained in:
LGUG2Z committed 2026-11-05 15:03:27 -08:00
1 parent a342dc39f5
commit b16fedebe7
2 files changed
+19 -2

No files matched your search

+2 -2
View File
@@ -75,8 +75,8 @@ on machines built with the module too.
Three files are generated from the Rust types and committed: `schemas/linux/schema.json` and
`schemas/linux/schema.asc.json` (`just jsonschema`), and `nix/linux/komorebi-options.nix`, which types the
module's `config` (`just nixgen`, which needs `schemars-nixgen`, `cargo install
schemars-nixgen`). A change to what `komorebi.json` or an `applications.json` can
module's `config` (`just nixgen-linux`, which runs `schemars-nixgen`, built from
[`crates/schemars-nixgen`](../../crates/schemars-nixgen)). A change to what `komorebi.json` or an `applications.json` can
say regenerates them in the same commit, and the check `schema-fresh` fails when
it does not. The first line of the options file is the hash of the schema it was
made from, which is how the check tells without running `schemars-nixgen`.