A great way to get dogs to keep their nails trimmed themselves is with a scratchboard.
For those who would rather buy one premade you can find them here.
Here is a video showing how to train your dog to use the scratchpad. Remember to take each step at your own dogs pace.
Here is a great video on conditioning your dog to not hate nail trims. The most important thing is to go slow. Go thru each step at your dogs pace. This may mean repeating over multiple days, weeks, or months.