Unable to upload nix-cache-info behind company proxy

Hi,

I’m trying to use nix behind a company proxy and installing a package hangs with

$ nix-env -i doas                 
installing 'doas-6.8.2'
warning: error: unable to upload 'https://cache.nixos.org/nix-cache-info': Send failed since rewinding of the data stream failed (65); retrying in 286 ms

Any workaround ? Thanks