Adding a gallon of distilled water to a 30g tank will not make much of an overall difference to salinity and may not even be enough to show a change on your refractometer. The other issue is that you really need to remove some of the saltwater from the tank and replace it with fresh water. Just adding fresh water to the tank will only lower the salinity until that water evaporates back out. It’s more about removing the salt than “diluting” the salt with more water.
Just remember that changing salinity is best done slowly and here is a calculator that can help you tell how much water you will need to change to get the salinity where you want it.
https://www.hamzasreef.com/Contents/Calculators/TargetSalinity.php