An Orchard Park farm that has spent months trying to connect to public water for its new barn has filed a lawsuit against the town, accusing the municipality of impeding the farm from accessing water.