diff options
author | Shea Levy <shea@shealevy.com> | 2014-02-11 13:03:19 -0500 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2014-02-11 13:51:54 -0500 |
commit | 2deb26bd4a0c21d7c5eef54cdd2f4913699efb7c (patch) | |
tree | 805933efc3d3bf3259cbb405d82930c3d466e1b4 /lib/modules.nix | |
parent | b2d0c27d0acd3e8d4270038f93e672b1e63a79d6 (diff) | |
download | nixpkgs-2deb26bd4a0c21d7c5eef54cdd2f4913699efb7c.tar nixpkgs-2deb26bd4a0c21d7c5eef54cdd2f4913699efb7c.tar.gz nixpkgs-2deb26bd4a0c21d7c5eef54cdd2f4913699efb7c.tar.bz2 nixpkgs-2deb26bd4a0c21d7c5eef54cdd2f4913699efb7c.tar.lz nixpkgs-2deb26bd4a0c21d7c5eef54cdd2f4913699efb7c.tar.xz nixpkgs-2deb26bd4a0c21d7c5eef54cdd2f4913699efb7c.tar.zst nixpkgs-2deb26bd4a0c21d7c5eef54cdd2f4913699efb7c.zip |
Pass lib to modules
Since mkOption, types, etc. are defined there, lib is really part of the interface
Diffstat (limited to 'lib/modules.nix')
-rw-r--r-- | lib/modules.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/modules.nix b/lib/modules.nix index fa31ce6399c..6d9dc0e3ad3 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 |