It seems I can use rewriteURL in a flake like this:
pkgs = import nixpkgs {
inherit system;
config = {
rewriteURL = url: "http://my_ip/cache/${url}";
};
};
but is it possible to set in nix.conf or something like that and have it used system-wide?
Thanks.