dotfiles/users/functionalhacker/programs/git.nix
2024-10-05 16:17:16 +03:00

31 lines
620 B
Nix

{ ... }:
{
programs.git = {
enable = true;
userName = "Marko Korhonen";
userEmail = "marko@korhonen.cc";
extraConfig = {
user.signingkey = "F2B9F713E7ED627336DD85E444FA3F28CD931BB0";
commit = {
gpgsign = true;
signoff = true;
};
tag = {
gpgsign = true;
signoff = true;
};
merge = {
prompt = false;
conflictstyle = "diff3";
tool = "nvim";
};
};
aliases = {
upstream = "!git push -u origin HEAD";
recommit = "!git commit -eF $(git rev-parse --git-dir)/COMMIT_EDITMSG";
};
};
}