Configure /urs/lib analog to /etc/

{
   environment.etc."...".text = "...";
}
{
   "???" = "???";
}

It does not expect it in /usr/lib but in $libdir (path it was installed to). And we already patch Firefox to be able to change the directory:

which makes the messaging hosts work: