How do I create a nested Hash type?

You can use a recursive alias. But I think you don’t need to use hashes in your program.

Its easier if you tell us what you want to do, what’s your problem (not your solution).