the fraction in the Nernst equation refers to "activities", which is indeed partial pressures in case of gases, and concentrations in case of salts.
In case you use liquid water as your base electrolyte, the activity of water is by definition 1.
In case you use wetted gases as your reactants (oxygen and hydrogen streams, with high humidity), then the water will be predominantly in vapor form present, and thus have a partial pressure.