Longitudinal ridges on one or two nails can be due to trauma to the nail plate. However, this is unlikely to be the cause if all your nails are affected! It's also very unlikely to be due to a ...
Brittle nails might indicate an underactive or overactive thyroid, as per the NHS. The American Academy of Dermatology Association describes these as "thick, dry, and brittle with visible ridges".