feat: improve git config
This commit is contained in:
parent
e3b75304ab
commit
bda284daa9
1 changed files with 26 additions and 1 deletions
|
|
@ -1,12 +1,37 @@
|
|||
{ lib, pkgs, ... }:
|
||||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
|
||||
extraConfig = {
|
||||
settings = {
|
||||
push.autoSetupRemote = true;
|
||||
init.defaultBranch = "main";
|
||||
|
||||
pull.rebase = true;
|
||||
|
||||
credential = {
|
||||
"https://github.com/" = {
|
||||
helper = "${lib.getExe pkgs.gh} auth git-credential";
|
||||
};
|
||||
"https://gist.github.com/" = {
|
||||
helper = "${lib.getExe pkgs.gh} auth git-credential";
|
||||
};
|
||||
};
|
||||
|
||||
url = {
|
||||
"ssh://git@github.com" = {
|
||||
insteadOf = "https://github.com";
|
||||
};
|
||||
"ssh://git@git.catgirl.dog" = {
|
||||
insteadOf = "https://git.catgirl.dog";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
programs.lazygit = {
|
||||
enable = true;
|
||||
|
||||
enableZshIntegration = true;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue