lib/modules: Rename _module.assertions to _module.checks

This commit is contained in:
Silvan Mosberger
2020-11-30 23:51:41 +01:00
parent 3e39d6efdf
commit c9cc8969b4
16 changed files with 108 additions and 76 deletions
+2 -2
View File
@@ -29,7 +29,7 @@ with lib;
'';
};
_module.assertions = mkOption {
_module.checks = mkOption {
type = types.attrsOf (types.submodule {
triggerPath = mkDefault [ "system" "build" "toplevel" ];
});
@@ -37,7 +37,7 @@ with lib;
};
config._module.assertions = lib.listToAttrs (lib.imap1 (n: value:
config._module.checks = lib.listToAttrs (lib.imap1 (n: value:
let
name = "_${toString n}";
isWarning = lib.isString value;