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

This commit is contained in:
Robert Hensing 2018-10-28 02:09:43 +02:00
parent a54a799d59
commit 5f894a67f5

View file

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