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

33 lines
741 B
Nix
Raw Normal View History

2022-12-19 19:30:32 +01:00
{ config, pkgs, ... }:
{
2023-02-25 23:59:19 +01:00
home.packages = with pkgs; [ delta ];
2022-12-19 19:30:32 +01:00
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-02-25 23:59:19 +01:00
core.pager = "delta";
interactive.diffFilter = "delta --color-only";
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
}