Uv2nix: how to setup netrc-file for all dependencies?

According to uv2nix documentation it’s possible to override the curlOpts for a dedicated package:
https://pyproject-nix.github.io/uv2nix/patterns/private-deps.html#overriding-source-fetching

In my case, I need to set the netrc for all packages. Do you know the kung-fu to set the curlOpts once for all packages ?

Here is the solution I found, let me know if you have better proposal:
On /etc/nix/nix.conf:
extra-sandbox-paths = /etc/nix/netrc

Then, define the NIX_CURL_FLAG env var to build:
NIX_CURL_FLAGS=“–netrc-file /etc/nix/netrc” nix build --store /tmp/store -L -v