The Gun Nut perk is required to create better modifications for guns. There are over 700 mods, generally including sights, barrels, stocks, receivers, magazines and more. Weapon mods can be built from raw materials and attached to weapons at weapons workbenches.