nix: cleanup substituters
This commit is contained in:
parent
0e41e653a4
commit
b23abd8a85
2 changed files with 12 additions and 23 deletions
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
|
@ -6,23 +7,15 @@
|
|||
nix.settings = {
|
||||
trusted-users = ["@admin"];
|
||||
substituters =
|
||||
{
|
||||
"Asia/Shanghai" = [
|
||||
"https://mirror.sjtu.edu.cn/nix-channels/store" # SJTU - 上海交通大学 Mirror
|
||||
"https://mirrors.ustc.edu.cn/nix-channels/store" # USTC - 中国科学技术大学 Mirror
|
||||
(lib.optionals (config.time.timeZone == "Asia/Shanghai") [
|
||||
"https://mirrors.tuna.tsinghua.edu.cn/nix-channels/store" # TUNA - 清华大学 Mirror
|
||||
];
|
||||
}
|
||||
.${config.time.timeZone}
|
||||
or []
|
||||
])
|
||||
++ [
|
||||
"https://nix-community.cachix.org"
|
||||
"https://cache.garnix.io"
|
||||
"https://guanran928.cachix.org"
|
||||
];
|
||||
trusted-public-keys = [
|
||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
|
||||
"guanran928.cachix.org-1:BE/iBCj2/pqJXG908wHRrcaV0B2fC+KbFjHsXY6b91c="
|
||||
];
|
||||
use-xdg-base-directories = true;
|
||||
|
|
|
@ -1,23 +1,19 @@
|
|||
{config, ...}: {
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
nix.settings = {
|
||||
substituters =
|
||||
{
|
||||
"Asia/Shanghai" = [
|
||||
"https://mirror.sjtu.edu.cn/nix-channels/store" # SJTU - 上海交通大学 Mirror
|
||||
"https://mirrors.ustc.edu.cn/nix-channels/store" # USTC - 中国科学技术大学 Mirror
|
||||
(lib.optionals (config.time.timeZone == "Asia/Shanghai") [
|
||||
"https://mirrors.tuna.tsinghua.edu.cn/nix-channels/store" # TUNA - 清华大学 Mirror
|
||||
];
|
||||
}
|
||||
.${config.time.timeZone}
|
||||
or []
|
||||
])
|
||||
++ [
|
||||
"https://nix-community.cachix.org"
|
||||
"https://cache.garnix.io"
|
||||
"https://guanran928.cachix.org"
|
||||
];
|
||||
trusted-public-keys = [
|
||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
|
||||
"guanran928.cachix.org-1:BE/iBCj2/pqJXG908wHRrcaV0B2fC+KbFjHsXY6b91c="
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in a new issue