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 let
config = lib.mkFlake.evalArgs { config = lib.mkFlake.evalArgs {
args = lib.mkMerge [ args { _module.check = false; } ]; inherit args;
}; };
cfg = config.config; cfg = config.config;

View file

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