How do I set a custom home directory for Cygwin?

Add to nsswitch.conf:

db_home: /cygdrive/c/tools/shell/home