I've got two kinds of custom earplugs (different materials). Both literally have a perfect fit for my ears. Both suck to sleep in. Horrible if you're a side-sleeper, but even if your not, I find that by half-way through the night my ears don't want anything in them anymore.
The idea is great, but I think that many will find that having plugs in your ears all night is not comfortable.