James Taylor scored his first century of the season as Nottinghamshire closed in on victory over East Midlands rivals Derbyshire.