about summary refs log tree commit diff
path: root/lib/tests/modules/freeform-submodules.nix
AgeCommit message (Collapse)AuthorFilesLines
2022-03-01lib.modules: Use types.optionType for _module.freeformTypeSilvan Mosberger1-0/+22
This ensures that the module file locations are propagated to the freeform type, which makes it so that submodules in freeform types now have their declaration location shown in the manual, fixing https://github.com/NixOS/nixpkgs/issues/132085. In addition, this also newly allows freeformTypes to be declared multiple times and all declarations being merged together according to normal option merging. This also removes some awkwardness regarding the type of `freeformType`