Configuration file

I 'am trying to modify my application.conf file from the controller, I know that is impossible to do it directly only read access is granted to the file, so I’am trying to create a new environment variables from the controller and calling them in the application.conf file, the problem is I could not use the export command in Scala code to create the new environment variable