The functionalization of nanodiamonds (diamondoids) as a key parameter of their easily controlled self-assembly in micro- and nanocrystals from the vapor phase.