summary refs log tree commit diff
path: root/nixos/modules/misc/nixpkgs.nix
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2014-05-06 10:31:48 -0400
committerNicolas B. Pierron <nicolas.b.pierron@gmail.com>2015-03-12 23:42:57 +0100
commitf69ce50529c5108d4dababfd221652ace55264bd (patch)
tree28b78c3c007a7e362801e13830ffec967951dbb2 /nixos/modules/misc/nixpkgs.nix
parent0a0a29fd0bb8329b33a0b2bb25627d3b3d9b7368 (diff)
downloadnixpkgs-f69ce50529c5108d4dababfd221652ace55264bd.tar
nixpkgs-f69ce50529c5108d4dababfd221652ace55264bd.tar.gz
nixpkgs-f69ce50529c5108d4dababfd221652ace55264bd.tar.bz2
nixpkgs-f69ce50529c5108d4dababfd221652ace55264bd.tar.lz
nixpkgs-f69ce50529c5108d4dababfd221652ace55264bd.tar.xz
nixpkgs-f69ce50529c5108d4dababfd221652ace55264bd.tar.zst
nixpkgs-f69ce50529c5108d4dababfd221652ace55264bd.zip
Move most extra args out of eval-config.nix
Diffstat (limited to 'nixos/modules/misc/nixpkgs.nix')
-rw-r--r--nixos/modules/misc/nixpkgs.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/nixos/modules/misc/nixpkgs.nix b/nixos/modules/misc/nixpkgs.nix
index cbb42c00003..2b648c1fa4e 100644
--- a/nixos/modules/misc/nixpkgs.nix
+++ b/nixos/modules/misc/nixpkgs.nix
@@ -60,6 +60,7 @@ in
 
     nixpkgs.system = mkOption {
       type = types.str;
+      default = builtins.currentSystem;
       description = ''
         Specifies the Nix platform type for which NixOS should be built.
         If unset, it defaults to the platform type of your host system.
@@ -69,4 +70,12 @@ in
     };
 
   };
+
+  config = {
+    __internal.args.pkgs = import ../../lib/nixpkgs.nix {
+      system = config.nixpkgs.system;
+
+      inherit (config.nixpkgs) config;
+    };
+  };
 }