How to define custom environment variables available in the n8n workflow

Maybe I’ve found a way to do this with the combination of Read Binary File + Spreadsheet + Function nodes.

I write my settings in a setting.csv file with a setting;value; header.
Each line will contain a key/value pair of setting.

The Read Binary will load the file, the spreadsheet transform in a JSON way, and the Function will “squash” all the lines in a single JSON Object.

What do you think, is it a good way ?