VS Code: Workaround for read-only settings

Hi! I’m learning Nix and trying to describe my Mac profile config with Nix. I’ve installed VSCode (actually VSCodium) and successfully configured it through helpful Home Manager options. However, using the app is very annoying as it constantly tries to modify settings (e.g. when my system theme changes) and fails to do so with an error message.

Is there any way in Nix to make the settings.json writable to the app and still overwrite it each time I switch configuration? Or maybe there is another way to solve it in a Nix way?