Skip to content

Commit

Permalink
Pass lib to modules
Browse files Browse the repository at this point in the history
Since mkOption, types, etc. are defined there, lib is really part of the interface
  • Loading branch information
shlevy committed Feb 11, 2014
1 parent b2d0c27 commit 2deb26b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/modules.nix
Expand Up @@ -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
Expand Down

0 comments on commit 2deb26b

Please sign in to comment.