8 sys = nixosLib.evalModules rec {
15 { lib, someArg, ... }:
17 # Make sure imports from specialArgs are respected
18 imports = [ someArg.myModule ];
21 meta.doc = ./test-dummy.chapter.xml;
34 documentation.nixos.includeAllModules = true;
37 specialArgs.someArg.myModule =
40 options.foobar = lib.mkOption {
42 description = "The foobar option was added via specialArgs";
49 runCommand "documentation-check"
51 inherit (sys.config.system.build.manual) optionsJSON;
54 json="$optionsJSON/share/doc/nixos/options.json"
57 grep 'The foobar option was added via specialArgs' <"$json" >/dev/null