hjem (Danish) comes from Old Danish hēm, from Old Norse heimr, from Proto-Germanic haimaz, from Proto-Indo-European ḱóymos, from Proto-Indo-European ḱey- — to be lying down; to settle.
hjem (Danish): home