fix(docs): home-manager options not shown
This commit is contained in:
parent
cf3b38a355
commit
56230627db
1 changed files with 7 additions and 3 deletions
|
@ -1,14 +1,18 @@
|
|||
{ pkgs, lib }:
|
||||
let
|
||||
filterVisible = toplevelOption: option: option // { visible = option.visible && builtins.elemAt option.loc 0 == toplevelOption; };
|
||||
nixos-eval = lib.evalModules { modules = [ ../nixos/options.nix ]; };
|
||||
home-eval = lib.evalModules { modules = [ ../home/options.nix ]; };
|
||||
home-eval = lib.evalModules {
|
||||
modules = [ ../home/options.nix ];
|
||||
specialArgs = { inherit pkgs; };
|
||||
};
|
||||
nixos-markdown = (pkgs.nixosOptionsDoc {
|
||||
inherit (nixos-eval) options;
|
||||
transformOptions = option: option // { visible = option.visible && builtins.elemAt option.loc 0 == "jconfig"; };
|
||||
transformOptions = filterVisible "jconfig";
|
||||
}).optionsCommonMark;
|
||||
home-markdown = (pkgs.nixosOptionsDoc {
|
||||
inherit (home-eval) options;
|
||||
transformOptions = option: option // { visible = option.visible && builtins.elemAt option.loc 0 == "jconfig"; };
|
||||
transformOptions = filterVisible "jhome";
|
||||
}).optionsCommonMark;
|
||||
in
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue