If you have an electric outlet nearby
The water part is easy, just add a splitter valve to the cold water intake of the toilet.
The electric part depends on whether you have a outlet nearby. Otherwise you need a new outlet.
Overall a pretty fun project.