Two modules for biosynthesis from CO2