Generally it’s almost always wasted to add spices to the water while boiling as 99% of the spices will go down the drain. You need tu use a lot of spices to get any effect. It’s better to just add the spices after you have boiled, or in the case of pasta, to the sauce.