You would be able to install the cover with an HDX headache rack as long as you still have some room on the bed rails. Folding the tonneau shouldn't be an issue, though it will likely rattle against the rack if you have it fully opened.