Stock Android on Nexus One?
I believe this XDA forum post will give you a good head start.  Note: this is written for the Sapphire.

Compiling and flashing a Kernel for the N1.

Another guide from XDA forums.

Compiling systems apps.