nixos/lib/eval-config.nix: Add extraModules parameter for opt-in purity

This commit is contained in:
Robert Hensing 2018-12-10 22:02:55 +01:00
parent 475d653afd
commit 4272188364

View file

@ -24,11 +24,11 @@
check ? true
, prefix ? []
, lib ? import ../../lib
, extraModules ? let e = builtins.getEnv "NIXOS_EXTRA_MODULE_PATH";
in if e == "" then [] else [(import e)]
}:
let extraArgs_ = extraArgs; pkgs_ = pkgs;
extraModules = let e = builtins.getEnv "NIXOS_EXTRA_MODULE_PATH";
in if e == "" then [] else [(import e)];
in
let