TIL: how to generate NixOS module docs

you can avoid splitting your modules into multiple files by setting check = false on evalModules, or in the newer style adding a module that sets _module.check = false. that’s how the docs system is able to cache most of the collected options documentation without needing this split; we simply skip the consistency checks since we don’t need them.

7 Likes