How to install android 2.2 (froyo) on Nexus One
The easiest way would be to install ROM Manager from the Market.

It is a fantastic application written by the guys that created CyanogenMod. From this app, you can download and install vanilla ROMs and custom ROMs with a few clicks. Highly recommended.