I used gnomes as a nation where science went too far and they became a fascist culture for a while, using their technology to attack and conquer. When they failed and their nation collapsed, they now live in the junkyard ruins of their failure, surrounded by the now sentient warforged.