···3737 # nftables to stop working. Not that this little thing
3838 # needs extra security anyways.
3939 networking.firewall.checkReversePath = false;
4040+4141+ # FIXME: specializations don't work with mobile-nixos,
4242+ # so we need to hardcode this for now
4343+4444+ # cache.nixos.org is *unbearably* slow when accessed from Mainland China.
4545+ # Fortunately, mirror sites exist... Hooray(?)
4646+ nix.settings.substituters = map (url: "${url}/nix-channels/store") [
4747+ "https://mirrors.ustc.edu.cn"
4848+ "https://mirrors6.tuna.tsinghua.edu.cn"
4949+ "https://mirrors.tuna.tsinghua.edu.cn"
5050+ # "https://mirror.sjtu.edu.cn" # FIXME: buggy?
5151+ ];
5252+5353+ # Redirect all traffic through proxy
5454+ networking.proxy.allProxy = "http://127.0.0.1:2080";
5555+ nix.settings.impure-env = [
5656+ "all_proxy=http://127.0.0.1:2080"
5757+ "GOPROXY=https://goproxy.cn"
5858+ ];
4059}