I can't remember the name of this fairly recent movie. The protagonist wakes up in a bath tub without memories. He breaks up with his wife, gets in touch with a "doctor" who claims to be able to help him, and is accused of serial killing prostitutes. The sun never seems to go up. The main plot device:
The town is in perpetual darkness. It is the experiment of a hive-mind race, that tries to understand why humans are individual. To achieve this, they move humans' memories around. They can shape the world with thought, and when the protagonist learns this power, he challenges them, destroying them. It is revealed that the Earth is long since gone, and he lives on in this false world.
I've looked for titles like City of Night and City of Darkness, but can't find it.