From 2deb26bd4a0c21d7c5eef54cdd2f4913699efb7c Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Tue, 11 Feb 2014 13:03:19 -0500 Subject: Pass lib to modules Since mkOption, types, etc. are defined there, lib is really part of the interface --- lib/modules.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/modules.nix b/lib/modules.nix index fa31ce6399ce..6d9dc0e3ad3f 100644 --- a/lib/modules.nix +++ b/lib/modules.nix @@ -12,7 +12,7 @@ rec { and ‘config’: the nested set of all option values. */ evalModules = { modules, prefix ? [], args ? {}, check ? true }: let - args' = args // result; + args' = args // { lib = import ./.; } // result; closed = closeModules modules args'; # Note: the list of modules is reversed to maintain backward # compatibility with the old module system. Not sure if this is -- cgit 1.4.1