Once you have a mod, you can attach it to a valid helmet/headgear by interacting with a workbench. Select the Mods menu, then ...
There's a weapon kit for each gun type, and you can either use them right from the item on the ground (hold 'E') so long as ...