feat: improve git config

This commit is contained in:
etwas 2025-12-02 21:27:05 +01:00
parent e3b75304ab
commit bda284daa9

View file

@ -1,12 +1,37 @@
{ lib, pkgs, ... }:
{ {
programs.git = { programs.git = {
enable = true; enable = true;
extraConfig = { settings = {
push.autoSetupRemote = true; push.autoSetupRemote = true;
init.defaultBranch = "main"; init.defaultBranch = "main";
pull.rebase = true; 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;
}; };
} }