Revert "nixos/modules/misc/nixpkgs.nix: Use pure Nixpkgs function"

As a workaround for #51025 and
https://github.com/NixOS/nix/issues/1232

This reverts commit 5f894a67f5.
This commit is contained in:
Robert Hensing 2019-01-15 13:11:09 +01:00
parent e8c9962957
commit db70173627

View File

@ -55,7 +55,7 @@ let
check = builtins.isAttrs;
};
defaultPkgs = import ../../../pkgs/top-level/default.nix {
defaultPkgs = import ../../.. {
inherit (cfg) config overlays localSystem crossSystem;
};
@ -68,7 +68,7 @@ in
pkgs = mkOption {
defaultText = literalExample
''import "''${nixos}/../pkgs/top-level" {
''import "''${nixos}/.." {
inherit (cfg) config overlays localSystem crossSystem;
}
'';