types.attrListWith: init

Trivial extraction from attrListOf.
This commit is contained in:
Robert Hensing
2026-04-19 13:00:03 +01:00
committed by Johannes Kirschbauer
parent 43d998e6c0
commit 17fdb6f68a
2 changed files with 17 additions and 2 deletions

View File

@@ -810,8 +810,10 @@ rec {
substSubModules = m: nonEmptyListOf (elemType.substSubModules m);
};
attrListOf =
elemType:
attrListOf = elemType: attrListWith { inherit elemType; };
attrListWith =
{ elemType }:
mkOptionType rec {
name = "attrListOf";
description = "attribute list of ${