From 427218836457753db735b45b270411ecbf0ee697 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Mon, 10 Dec 2018 22:02:55 +0100 Subject: [PATCH] nixos/lib/eval-config.nix: Add extraModules parameter for opt-in purity --- nixos/lib/eval-config.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/lib/eval-config.nix b/nixos/lib/eval-config.nix index 5f05b037bdde..ce90c81df6e5 100644 --- a/nixos/lib/eval-config.nix +++ b/nixos/lib/eval-config.nix @@ -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