A classification of Thurston geometries without compact quotients