nixos-config/users/rouven/modules/git/default.nix

32 lines
737 B
Nix
Raw Normal View History

2022-12-19 19:30:32 +01:00
{ config, pkgs, ... }:
{
programs.git = {
enable = true;
userName = "Rouven Seifert";
2023-03-26 14:27:15 +02:00
userEmail = "rouven@rfive.de";
2022-12-19 19:30:32 +01:00
extraConfig = {
2023-04-06 22:31:45 +02:00
core.pager = "${pkgs.delta}/bin/delta";
interactive.diffFilter = "${pkgs.delta}/bin/delta --color-only";
2023-02-25 23:59:19 +01:00
delta = {
navigate = true;
light = false;
side-by-side = true;
line-numbers = true;
};
merge.conflictStyle = "diff3";
diff.colorMoved = "default";
2022-12-19 19:30:32 +01:00
user.signingkey = "B95E8FE6B11C4D09";
pull.rebase = false;
init.defaultBranch = "main";
commit.gpgsign = true;
};
};
2023-01-06 22:39:08 +01:00
programs.gh = {
enable = true;
settings = {
editor = "nvim";
git_protocol = "ssh";
};
};
2022-12-19 19:30:32 +01:00
}