set _module.check in evalArgs instead of mkFlake

this makes more sense since evalArgs is the module and it makes the code
cleaner
This commit is contained in:
Pacman99 2021-04-26 21:32:26 -07:00
parent e9675330a7
commit 278ae0e108
2 changed files with 5 additions and 1 deletions

View File

@ -8,7 +8,7 @@ _: { self, inputs, ... } @ args:
let
config = lib.mkFlake.evalArgs {
args = lib.mkMerge [ args { _module.check = false; } ];
inherit args;
};
cfg = config.config;

View File

@ -187,6 +187,10 @@ let
};
in
{
# this does not get propagated to submodules
# to allow passing flake outputs directly to mkFlake
config._module.check = false;
options = with types; {
self = mkOption {
type = flakeType;