query
On this page

attrsOf

lib.types.attrsOf

Docs pulled from | This Revision | 18 minutes ago


Nixpkgs manual

types.attrsOf t

An attribute set of where all the values are of t type. Multiple definitions result in the joined attribute set.

This type is strict in its values, which in turn means attributes cannot depend on other attributes. See types.lazyAttrsOf for a lazy version.

Noogle detected

Implementation

The following is the current implementation of this function.

attrsOf = elemType: attrsWith { inherit elemType; };