a farm more like this is more practical to show, this 2 block wide cell can be infinitely tiled... and using redstone blocks for powering rails is way overkill, especially more than just one at each end.
...
i mean, look how far the hopper minecart travelled before stopping