1 { nixosLib, pkgsModule, runCommand }:
4 sys = nixosLib.evalModules rec {
10 ({ lib, someArg, ... }: {
11 # Make sure imports from specialArgs are respected
12 imports = [ someArg.myModule ];
15 meta.doc = ./test-dummy.chapter.xml;
27 documentation.nixos.includeAllModules = true;
30 specialArgs.someArg.myModule = { lib, ... }: {
31 options.foobar = lib.mkOption {
33 description = "The foobar option was added via specialArgs";
40 runCommand "documentation-check"
42 inherit (sys.config.system.build.manual) optionsJSON;
44 json="$optionsJSON/share/doc/nixos/options.json"
47 grep 'The foobar option was added via specialArgs' <"$json" >/dev/null