Long enough is good.
It's not a great idea to use a pulley. This is a rescue pulley, designed to accommodate two carabiners. The rope is dragging over rock edges.
The anchor is an enormous tree, but let's add the tiniest nut and cams.
Just in case lets put a tiny wire behind a flake.