What are the amps for? One subs and one for door speakers? You may want to get a crossover or an in dash EQ or something like that to control the amps easier. It also acts like a line driver and boosts your headunits output voltage.
then a line into one amp and a line out from one amp to the other is perfectly fine since you'll be using the head unit to essentially adjust only one aspect of your entire system