Hi!
The easiest option is to set __noChroot = true;
on your derivation. This will completely turn off the sandbox for that derivation and allow it to access both the whole filesystem and network (as a nixbld user). You will also have to set sandbox = relaxed
in your /etc/nix/nix.conf
file and make sure that the nix-daemon has been restarted.