Merge pull request #81557 from bb010g/nixos-expose-extrasources
nixos/documentation: Allow specifying extraSources
This commit is contained in:
commit
9d0b3bff3b
@ -17,6 +17,7 @@ let
|
|||||||
inherit pkgs config;
|
inherit pkgs config;
|
||||||
version = config.system.nixos.release;
|
version = config.system.nixos.release;
|
||||||
revision = "release-${version}";
|
revision = "release-${version}";
|
||||||
|
extraSources = cfg.nixos.extraModuleSources;
|
||||||
options =
|
options =
|
||||||
let
|
let
|
||||||
scrubbedEval = evalModules {
|
scrubbedEval = evalModules {
|
||||||
@ -163,6 +164,19 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nixos.extraModuleSources = mkOption {
|
||||||
|
type = types.listOf (types.either types.path types.str);
|
||||||
|
default = [ ];
|
||||||
|
description = ''
|
||||||
|
Which extra NixOS module paths the generated NixOS's documentation should strip
|
||||||
|
from options.
|
||||||
|
'';
|
||||||
|
example = literalExample ''
|
||||||
|
# e.g. with options from modules in ''${pkgs.customModules}/nix:
|
||||||
|
[ pkgs.customModules ]
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user