Nix API Overview There are two top-level components of the Nix API, which together allow for the declarative definition of a Clan: the Inventory, a structure representing the machines, services, custom configurations, and other data that constitute a Clan, and the buildClan function, which constructs a Clan from an Inventory definition.