diff --git a/flake.nix b/flake.nix index d0ebaca..e909582 100644 --- a/flake.nix +++ b/flake.nix @@ -1,12 +1,16 @@ -{ +{lib}:{ nixConfig = rec { experimental-features = [ "nix-command" "flakes" ]; - substituters = [ + substituters = lib.mkForce [ # Replace official cache with a mirror located in China # # Feel free to remove this line if you are not in China "https://mirrors.ustc.edu.cn/nix-channels/store" + "https://mirrors.ustc.edu.cn/nix-channels/store" # 中科大 + "https://mirrors.tuna.tsinghua.edu.cn/nix-channels/store" #清华 + "https://mirrors.bfsu.edu.cn/nix-channels/store" # 北外 + "https://mirror.sjtu.edu.cn/nix-channels/store" #交大 #"https://cache.nixos.org" ]; trusted-substituters = substituters;