This commit is contained in:
Sense T 2023-11-25 17:27:20 +08:00
parent 7802ae1dd8
commit 9d61a42c6d

View File

@ -1,12 +1,16 @@
{ {lib}:{
nixConfig = rec { nixConfig = rec {
experimental-features = [ "nix-command" "flakes" ]; experimental-features = [ "nix-command" "flakes" ];
substituters = [ substituters = lib.mkForce [
# Replace official cache with a mirror located in China # Replace official cache with a mirror located in China
# #
# Feel free to remove this line if you are not 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.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" #"https://cache.nixos.org"
]; ];
trusted-substituters = substituters; trusted-substituters = substituters;