This commit is contained in:
Sense T 2023-11-25 16:40:24 +08:00
parent cbc378da50
commit 77ce3248b9
2 changed files with 10 additions and 2 deletions

View File

@ -32,13 +32,17 @@
};
nix.settings = {
experimental-features = [ "nix-command" "flakes" ];
auto-optimise-store = true;
substituters = lib.mkForce [
"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-users = [
"tonychyi"
];
};

View File

@ -1,5 +1,5 @@
{
nixConfig = {
nixConfig = rec {
experimental-features = [ "nix-command" "flakes" ];
substituters = [
@ -9,6 +9,10 @@
"https://mirrors.ustc.edu.cn/nix-channels/store"
"https://cache.nixos.org"
];
trusted-substituters = substituters;
trusted-users = [
"tonychyi"
];
};
inputs = {