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 }:
|
{ pkgs, lib }:
|
||||||
let
|
let
|
||||||
|
filterVisible = toplevelOption: option: option // { visible = option.visible && builtins.elemAt option.loc 0 == toplevelOption; };
|
||||||
nixos-eval = lib.evalModules { modules = [ ../nixos/options.nix ]; };
|
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 {
|
nixos-markdown = (pkgs.nixosOptionsDoc {
|
||||||
inherit (nixos-eval) options;
|
inherit (nixos-eval) options;
|
||||||
transformOptions = option: option // { visible = option.visible && builtins.elemAt option.loc 0 == "jconfig"; };
|
transformOptions = filterVisible "jconfig";
|
||||||
}).optionsCommonMark;
|
}).optionsCommonMark;
|
||||||
home-markdown = (pkgs.nixosOptionsDoc {
|
home-markdown = (pkgs.nixosOptionsDoc {
|
||||||
inherit (home-eval) options;
|
inherit (home-eval) options;
|
||||||
transformOptions = option: option // { visible = option.visible && builtins.elemAt option.loc 0 == "jconfig"; };
|
transformOptions = filterVisible "jhome";
|
||||||
}).optionsCommonMark;
|
}).optionsCommonMark;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue