summary refs log tree commit diff
path: root/lib/modules.nix
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2014-05-05 15:52:33 -0400
committerNicolas B. Pierron <nicolas.b.pierron@gmail.com>2015-03-12 23:42:57 +0100
commite4a06f35b1d88ab98fa8b6962e7a3f802232d165 (patch)
tree16b61471d7378190125ab920c95ac2a340295585 /lib/modules.nix
parent1d62ad474694c0717017c2c8aa79909a890407b5 (diff)
downloadnixpkgs-e4a06f35b1d88ab98fa8b6962e7a3f802232d165.tar
nixpkgs-e4a06f35b1d88ab98fa8b6962e7a3f802232d165.tar.gz
nixpkgs-e4a06f35b1d88ab98fa8b6962e7a3f802232d165.tar.bz2
nixpkgs-e4a06f35b1d88ab98fa8b6962e7a3f802232d165.tar.lz
nixpkgs-e4a06f35b1d88ab98fa8b6962e7a3f802232d165.tar.xz
nixpkgs-e4a06f35b1d88ab98fa8b6962e7a3f802232d165.tar.zst
nixpkgs-e4a06f35b1d88ab98fa8b6962e7a3f802232d165.zip
nixos: Don't evaluate twice to get the value of config.nixpkgs
Diffstat (limited to 'lib/modules.nix')
-rw-r--r--lib/modules.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/modules.nix b/lib/modules.nix
index b514544c1e0..84ca209d367 100644
--- a/lib/modules.nix
+++ b/lib/modules.nix
@@ -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 {