From 06a5c10816c2347280b26c87adcfd3819be86674 Mon Sep 17 00:00:00 2001 From: Sense T Date: Fri, 7 Jul 2023 02:42:26 +0000 Subject: [PATCH] cargo-config --- config/cargo-config | 5 +++++ home.nix | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 config/cargo-config diff --git a/config/cargo-config b/config/cargo-config new file mode 100644 index 0000000..99e3738 --- /dev/null +++ b/config/cargo-config @@ -0,0 +1,5 @@ +[source.crates-io] +registry = "https://github.com/rust-lang/crates.io-index" +replace-with = 'ustc' +[source.ustc] +registry = "git://mirrors.ustc.edu.cn/crates.io-index" \ No newline at end of file diff --git a/home.nix b/home.nix index bd68cd9..f753184 100644 --- a/home.nix +++ b/home.nix @@ -34,14 +34,15 @@ proxychains-ng less openssh - wget - curl rnix-lsp.rnix-lsp + qemu ]; # Home Manager is pretty good at managing dotfiles. The primary way to manage # plain files is through 'home.file'. - home.file = {}; + home.file = { + ".cargo/config".source = ./config/cargo-config; + }; # You can also manage environment variables but you will have to manually # source