lib/modules: _module.check should always be internal
Honestly this option should probably just be removed
This commit is contained in:
parent
8dea4df903
commit
991dfccbd1
|
@ -73,19 +73,20 @@ rec {
|
||||||
check ? true
|
check ? true
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
# This internal module declare internal options under the `_module'
|
# An internal module that's always added, defining special options which
|
||||||
# attribute. These options are fragile, as they are used by the
|
# change the behavior of the module evaluation itself. This is under a
|
||||||
# module system to change the interpretation of modules.
|
# `_`-prefixed namespace in order to prevent name clashes with
|
||||||
|
# user-defined options
|
||||||
internalModule = rec {
|
internalModule = rec {
|
||||||
# FIXME: Using ./modules.nix directly breaks the doc for some reason
|
# FIXME: Using ./modules.nix directly breaks the doc for some reason
|
||||||
_file = "lib/modules.nix";
|
_file = "lib/modules.nix";
|
||||||
|
|
||||||
key = _file;
|
key = _file;
|
||||||
|
|
||||||
# These options are set to be internal only for prefix != [], aka it's
|
# Most of these options are set to be internal only for prefix != [],
|
||||||
# a submodule evaluation. This way their docs are displayed only once
|
# aka it's a submodule evaluation. This way their docs are displayed
|
||||||
# as a top-level NixOS option, but will be hidden for all submodules,
|
# only once as a top-level NixOS option, but will be hidden for all
|
||||||
# even though they are available there too
|
# submodules, even though they are available there too
|
||||||
options = {
|
options = {
|
||||||
_module.args = mkOption {
|
_module.args = mkOption {
|
||||||
# Because things like `mkIf` are entirely useless for
|
# Because things like `mkIf` are entirely useless for
|
||||||
|
@ -101,7 +102,7 @@ rec {
|
||||||
|
|
||||||
_module.check = mkOption {
|
_module.check = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
internal = prefix != [];
|
internal = true;
|
||||||
default = check;
|
default = check;
|
||||||
description = ''
|
description = ''
|
||||||
Whether to check whether all option definitions have matching
|
Whether to check whether all option definitions have matching
|
||||||
|
|
Loading…
Reference in New Issue