No problem, just add a separate file or section about nvim-tree/nvim-web-devicons and put your custom configuration there. Lazy will look for a plugin spec before loading it and if it finds one or more it will merge them and evaluate them.
Just make sure you're not calling setup somewhere else before that file/section is evaluated by Lazy. If you do, you should pass your configuration to that setup call.