nixos/modules: Expose the internal module in the top-level documentation

This commit is contained in:
Silvan Mosberger 2020-09-02 18:01:10 +02:00
parent 1e6a84b7af
commit 3759a77fcd
No known key found for this signature in database
GPG key ID: E8F1E9EAD284E17D
2 changed files with 11 additions and 6 deletions

View file

@ -655,7 +655,7 @@ runTests {
modules = [ module ];
}).options;
locs = filter (o: ! o.internal) (optionAttrSetToDocList options);
locs = filter (o: ! o.internal) (optionAttrSetToDocList (removeAttrs options [ "_module" ]));
in map (o: o.loc) locs;
expected = [ [ "foo" ] [ "foo" "<name>" "bar" ] [ "foo" "bar" ] ];
};