Bullpup

firearm with its action and magazine in its buttstock

A Bullpup is a firearm layout where the firing mechanism and magazine is behind the pistol grip.