Farms on the Moon? Why stop there, how about dairy farms in S.P.A.C.E?
How's about we run a few numbers?
If we assume that 50 square meters can feed one person, ( quite an assumption, IMHO ), and if we round down sunlight to 1,000 watts per square meter, then you need about 50 kilowatts of light, 8 to 12 hours a day, to support one person. Well, no, you need water, minerals and some energy too, but lets ignore that.
Now LED's are at about 100 lumens per watt. Spread that out over a square meter and you have 100 lux. Sunlight is right around 130,000 lux,. So you need about 1,300 watts to light up one square meter to the same intensity as sunlight. Very roughly.
Solar cells and inverters and wiring have an end-to-end efficiency of around 10%. So you need about 13,000 watts of collected sunlight to light up one square meter of hydroponics.
So we need about 13 meter-square panels at right-angles all the time to the Sun to get 13,000 watts during sunny days on the Moon. Let's round that down to 10, as sunlight is a bit more potent there.
Now sunlight is only there about 2/3 the time, and off for like 10 days, so we need batteries, let's say those are 75% efficient, round-trip through the batteries and diodes and inverters.
So we're back up to about 20 meter-square panels to light up one meter. To light up 50 square meters, one person's worth, that's ONE THOUSAND SQUARE METER STEERABLE PANELS.
That's an awful lot of hardware. I'm not sure one person could maintain 1,000 panels-- wiping off the dust, checking the steering motors, repairing meteorite damage, freeing vacuum-welded joints, swearing at al the dust they've stirred up walking from panel to panel, etc, etc, etc.
Doesn't leave much time for farming, among other things.
And oh, where are you going to get the water for 50 square meters of whatnot growing?