Solar mining only really works if you have the solar work during the day and use grid power at night or use net metering. Lithium ion batteries are expensive, inverters are expensive, lead acid batteries are expensive. The easiest all in one solution would probably be a Tesla Powerwall and getting enough of those to keep a farm online at night would be pretty expensive