update
This commit is contained in:
parent
08ccd07b41
commit
1f157c17e4
@ -56,31 +56,33 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
nix.settings = {
|
nix = {
|
||||||
auto-optimise-store = true;
|
settings = {
|
||||||
experimental-features = [
|
auto-optimise-store = true;
|
||||||
"nix-command"
|
experimental-features = [
|
||||||
"flakes"
|
"nix-command"
|
||||||
];
|
"flakes"
|
||||||
|
];
|
||||||
|
|
||||||
substituters = [
|
substituters = [
|
||||||
"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.tuna.tsinghua.edu.cn/nix-channels/store" # 清华
|
||||||
"https://mirrors.bfsu.edu.cn/nix-channels/store" # 北外
|
"https://mirrors.bfsu.edu.cn/nix-channels/store" # 北外
|
||||||
"https://mirror.sjtu.edu.cn/nix-channels/store" # 交大
|
"https://mirror.sjtu.edu.cn/nix-channels/store" # 交大
|
||||||
"https://nixos-cn.cachix.org"
|
"https://nixos-cn.cachix.org"
|
||||||
"https://cache.nixos.org/"
|
"https://cache.nixos.org/"
|
||||||
];
|
];
|
||||||
|
|
||||||
trusted-users = [
|
trusted-users = [
|
||||||
"root"
|
"root"
|
||||||
"@wheel"
|
"@wheel"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
nix.gc = {
|
gc = {
|
||||||
automatic = true;
|
automatic = true;
|
||||||
dates = "weekly";
|
dates = "weekly";
|
||||||
options = "--delete-older-than 1w";
|
options = "--delete-older-than 1w";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user