From 77ce3248b9ff7a4d051aa1185530f5d9cc816695 Mon Sep 17 00:00:00 2001 From: Sense T Date: Sat, 25 Nov 2023 16:40:24 +0800 Subject: [PATCH] update --- darwin-configuration.nix | 6 +++++- flake.nix | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/darwin-configuration.nix b/darwin-configuration.nix index 5970c18..47e6548 100644 --- a/darwin-configuration.nix +++ b/darwin-configuration.nix @@ -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" ]; }; diff --git a/flake.nix b/flake.nix index bc2df43..9b9ef88 100644 --- a/flake.nix +++ b/flake.nix @@ -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 = {