It is an interesting question, for example, the construction of small power generators to be use by farmers, water energy flows from high mountains provide electricity. I saw a modeling of a home made hydroelectric plant in Chile, but I cannot find the link.
Very interesting topic. Thanks Dr. Bachir for providing the valuable reference. Producing energy through drinking water supply network is a good idea. However, the priority can be in managing and conserving the energy through proper designing of distribution network, and making use of topographical advantage (gravity distribution) and alternative energy sources, like solar or wind. Energy conserved is energy produced.