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