home/private: add git base config
This commit is contained in:
@@ -64,6 +64,7 @@
|
|||||||
# Add private homelab and cloud host aliases
|
# Add private homelab and cloud host aliases
|
||||||
homeManagerModules.private = { ... }: {
|
homeManagerModules.private = { ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
|
./home/private/git.nix
|
||||||
./home/private/ssh-hosts.nix
|
./home/private/ssh-hosts.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
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