diff --git a/modules/nixos/core.nix b/modules/nixos/core.nix index af56a93..7b6b7ec 100644 --- a/modules/nixos/core.nix +++ b/modules/nixos/core.nix @@ -52,6 +52,8 @@ auto-optimise-store = true; substituters = [ "https://mirrors.ustc.edu.cn/nix-channels/store" + "https://mirror.sjtu.edu.cn/nix-channels/store" + "https://mirrors.tuna.tsinghua.edu.cn/nix-channels/store" "https://nixos-cn.cachix.org" "https://nix-community.cachix.org" "https://cache.nixos.org/" @@ -60,6 +62,9 @@ "nixos-cn.cachix.org-1:L0jEaL6w7kwQOPlLoCR3ADx+E3Q8SEFEcB9Jaibl0Xg=" "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" ]; + # 添加以下配置以允许失败时从源码构建 + fallback = true; + keep-going = true; }; gc = { automatic = true;