To open a configuration file with nano simply type nano <filename>. For example, to edit your .profile file you could type:
nano ~/.profile