home/private: add git base config
This commit is contained in:
24
home/private/git.nix
Normal file
24
home/private/git.nix
Normal 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/"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user