Many headache racks can have lights installed, and the process will depend on the specific rack. BackRack sells mounting brackets for lights that are compatible with most of its products.  Depending on the lights, you may also need to wire them to your car battery.