Pebble, workload container and environment variables

It’s a little hard to tell without seeing a bit more of the code. This function returns a dictionary that could be used as a pebble layer but not sure if/how/when that’s being applied. Do you have a link to the full charm code available?