First, you should make sure that the changes in your nails that concern your are indeed a nail fungus
Have the nail tissue cultured to evaluate for the presence of fungal elements...
Appropriate skin and nail care/hygiene is very important.
Some rx topical antifungal nail lacquers can help on less severe cases...
Oral antifungals are probably the most reliable course of treatment.