nixos: Don't evaluate twice to get the value of config.nixpkgs

This commit is contained in:
Shea Levy
2015-03-12 23:42:57 +01:00
committed by Nicolas B. Pierron
parent 1d62ad4746
commit e4a06f35b1
4 changed files with 18 additions and 27 deletions
+2 -2
View File
@@ -12,10 +12,10 @@ rec {
and config: the nested set of all option values. */
evalModules = { modules, prefix ? [], args ? {}, check ? true }:
let
internalModule = {
internalModule = rec {
_file = ./modules.nix;
key = ./modules.nix;
key = _file;
options = {
__internal.args = mkOption {