An Update to Nexus Devices

Nexus devices will continue to receive major updates for at least two years and security patches for the longer of three years from initial availability or 18 months from last sale of the device via the Google Store

Source: Official Android Blog: An Update to Nexus Devices