Rooting A Nexus 5 and Concerns Regarding Over The Air Updates?
If you root the device on the stock ROM, it will still offer to do OTA updates, but they won't work. OTA updates only apply to a completely clean system image that hasn't been rooted.

To apply an upgrade to your rooted device, you have to download the ROM image from the official Google site and follow the instructions there to flash it.