Catalysis of the ligation of an amino acid to another amino acid via a carbon-nitrogen bond, with the concomitant hydrolysis of the diphosphate bond in ATP or a similar triphosphate, carried out by a nonribosomal peptide synthase.