Someone that is a refrigeration engineer need to run the numbers with you.

My understanding is, any runs of refrigeration lines longer than 10 meters and you are going to get sizable losses from the trip back.

The refrigerant is "hot" and under high pressure as it leaves the compressor. Here, the long run actually helps if it allow the heat to escape and chill the refrigerant more before it reaches the condenser.

However, the return line is "cold", and if it heats up from the long line run, you lose.

What is needed is to see:

a) are you better off to generate electricity and run off the electricity

b) whether you can find a compressor that will work with intermittent power (wind, etc.) and still have reasonable efficiency.

c) what are the tradeoffs of refrigerant line losses vs. power transmission / storage losses.

Do get back to us with some numbers....

....after first deciding how much lagging you want to put on that cold return pipe.