I just made an automatic bash script to automatize the whole procedure of setting up nvidia-prime on dual-gpu systems:
Has to be run after the driver bundle has been installed. Should work on all Display managers (tested with GDM and lightdm)
[url]http://bugfixes.promisedev.com/download/nvidia_prime/nvidia_prime.tar.gz[/url]