All your mods obtained earlier are here to stay even in case of breakdown or losing your weapon after death. Once you get a new weapon, you can go on using all the previously crafted modifications.