cargo-config

This commit is contained in:
Sense T 2023-07-07 02:42:26 +00:00
parent ff087f5b2d
commit 06a5c10816
2 changed files with 9 additions and 3 deletions

5
config/cargo-config Normal file
View File

@ -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"

View File

@ -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