Skip to content

Commit 8cbd267

Browse files
committed
doc: hide _module.args
1 parent 6a4f822 commit 8cbd267

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

pkgs/doc.nix

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,15 @@ let
55
inherit ((lib.evalModules {
66
modules = [
77
../nixos-modules/microvm/options.nix
8-
{ _module.args.pkgs = pkgs; }
8+
({ lib, ... }: {
9+
# Provide `pkgs` arg to all modules
10+
config._module.args.pkgs = pkgs;
11+
# Hide NixOS `_module.args` from nixosOptionsDoc to remain
12+
# specific to microvm.nix
13+
options._module.args = lib.mkOption {
14+
internal = true;
15+
};
16+
})
917
];
1018
})) options;
1119
};

0 commit comments

Comments
 (0)