mirror of
https://github.com/nix-community/NixOS-WSL.git
synced 2026-11-07 14:59:35 +00:00
feat(options-doc): test doc generation for module
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
{ system
|
||||
, inputs
|
||||
, ...
|
||||
}:
|
||||
|
||||
let
|
||||
eval = inputs.nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = [
|
||||
inputs.self.nixosModules.wsl
|
||||
{
|
||||
# This forces evaluation of all types/descriptions in all modules
|
||||
documentation.nixos.includeAllModules = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
in
|
||||
# Return the options JSON derivation.
|
||||
# If any option type has a circular reference or missing attribute,
|
||||
# evaluation will fail here.
|
||||
eval.config.system.build.manual.optionsJSON
|
||||
@@ -77,6 +77,7 @@
|
||||
{
|
||||
nixpkgs-fmt = pkgs.callPackage ./checks/nixpkgs-fmt.nix args;
|
||||
nixpkgs-input = pkgs.callPackage ./checks/nixpkgs-input.nix args;
|
||||
options-doc = pkgs.callPackage ./checks/options-doc.nix args;
|
||||
rustfmt = pkgs.callPackage ./checks/rustfmt.nix args;
|
||||
side-effects = pkgs.callPackage ./checks/side-effects.nix args;
|
||||
username = pkgs.callPackage ./checks/username.nix args;
|
||||
|
||||
Reference in New Issue
Block a user