Merge pull request #51850 from roberth/nixos-pure

nixos/lib/eval-config.nix: Add extraModules parameter for opt-in purity
This commit is contained in:
Silvan Mosberger 2020-08-24 04:29:37 +02:00 committed by GitHub
commit b77d8ead28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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