The entrepreneur said he plans to leave the majority of his fortune to a town of just 25 people.