Is your nickname your middle name? If so, I think what you proposed makes sense. Other than that, I think most people use their legal names. For example, I have a friend with a very non-English given name that always goes by an "American name" that is unrelated to her real name. However, when she publishes, she uses her real name. Take my reply with a grain of salt, as I haven't been in this intuition myself, just observed others.
Dr. E