nixos/nixpkgs: Use types.pkgs

This commit is contained in:
Robert Hensing 2023-05-07 15:32:10 +02:00
parent 16d594a0e2
commit 6e594fedb3

View file

@ -49,10 +49,10 @@ let
merge = lib.mergeOneOption;
};
pkgsType = mkOptionType {
name = "nixpkgs";
pkgsType = types.pkgs // {
# This type is only used by itself, so let's elaborate the description a bit
# for the purpose of documentation.
description = "An evaluation of Nixpkgs; the top level attribute set of packages";
check = builtins.isAttrs;
};
# Whether `pkgs` was constructed by this module - not if nixpkgs.pkgs or