diff --git a/nixos/modules/misc/nixpkgs.nix b/nixos/modules/misc/nixpkgs.nix index 12b4a6453449..449a08a97b61 100644 --- a/nixos/modules/misc/nixpkgs.nix +++ b/nixos/modules/misc/nixpkgs.nix @@ -119,7 +119,7 @@ in pkgs = lib.mkOption { defaultText = lib.literalExpression '' import "''${nixos}/.." { - inherit (cfg) config overlays localSystem crossSystem; + inherit (config.nixpkgs) config overlays localSystem crossSystem; } ''; type = pkgsType;