Headliner trim

Since I didn't find out about building a shelf for the headliner till after I had installed mine, I need a way to trim the liner where it meets the wall. Anybody know what will follow the front curve? I suppose I could kerf some regular corner molding.
Bruce
Bruce