summary refs log tree commit diff
path: root/nixos/modules/misc
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2023-05-07 15:32:10 +0200
committerRobert Hensing <robert@roberthensing.nl>2023-05-10 15:55:09 +0200
commit6e594fedb353d8c75e0ee0527e2d821d30568c82 (patch)
tree9cb9f6713a8fbb28490e4344ecf0be3badfad3ee /nixos/modules/misc
parent16d594a0e2017bfa8b24051f4697d8debc240bfb (diff)
downloadnixpkgs-6e594fedb353d8c75e0ee0527e2d821d30568c82.tar
nixpkgs-6e594fedb353d8c75e0ee0527e2d821d30568c82.tar.gz
nixpkgs-6e594fedb353d8c75e0ee0527e2d821d30568c82.tar.bz2
nixpkgs-6e594fedb353d8c75e0ee0527e2d821d30568c82.tar.lz
nixpkgs-6e594fedb353d8c75e0ee0527e2d821d30568c82.tar.xz
nixpkgs-6e594fedb353d8c75e0ee0527e2d821d30568c82.tar.zst
nixpkgs-6e594fedb353d8c75e0ee0527e2d821d30568c82.zip
nixos/nixpkgs: Use types.pkgs
Diffstat (limited to 'nixos/modules/misc')
-rw-r--r--nixos/modules/misc/nixpkgs.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/modules/misc/nixpkgs.nix b/nixos/modules/misc/nixpkgs.nix
index 7f44c3f6f3f..55ec08acf44 100644
--- a/nixos/modules/misc/nixpkgs.nix
+++ b/nixos/modules/misc/nixpkgs.nix
@@ -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