From ee4a21c31420f91c1b830219c6336963b9fc0f02 Mon Sep 17 00:00:00 2001 From: Sense T Date: Tue, 4 Jul 2023 09:23:03 +0800 Subject: [PATCH] update nix config --- global/system-configuration.nix | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/global/system-configuration.nix b/global/system-configuration.nix index 2ae9fd1..7458d07 100644 --- a/global/system-configuration.nix +++ b/global/system-configuration.nix @@ -30,7 +30,25 @@ "nix-command" "flakes" ]; - }; - nix.gc.automatic = true; + substituters = [ + "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://nixos-cn.cachix.org" + "https://cache.nixos.org/" + ]; + + trusted-users = [ + "root" + "@wheel" + ]; + }; + + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 1w"; + }; } \ No newline at end of file