Hi
Yes, this is possible with flirt. You'd use the -applyxfm -init options which allow you to specify an affine transformation matrix (as a text file), and that matrix would specify your rotation.
No different to applying a transformation to an image, only in that in this case you'll need to build the transformation matrix yourself. The transformation matrix may take the form: