Regulation of chemoautotrophic metabolism