1
0

home/private: add git base config

This commit is contained in:
2025-12-01 19:26:03 -08:00
parent 78c2a41c55
commit d28a6049ca
2 changed files with 25 additions and 0 deletions

24
home/private/git.nix Normal file
View File

@@ -0,0 +1,24 @@
{ ... }:
{
programs.git = {
enable = true;
extraConfig = {
credential.helper = "store --file ~/.git-credentials";
"url \"https://g.t1.xyz/github-mirror/\"" = {
insteadOf = [
"https://github.com/AirGuanZ/"
"https://github.com/dmlc/"
"https://github.com/epezent/"
"https://github.com/facebook/"
"https://github.com/lz4/"
"https://github.com/nothings/"
"https://github.com/ocornut/"
"https://github.com/rapidsai/"
"https://github.com/yhirose/"
];
};
};
};
}