If you have special commands to put in the preamble of a LATEX file, you can use them in a LYX document as well. Select Layout Preamble... and type in the dialog window. Anything you type will (like with TEX mode) be sent directly to LATEX.