nix-config/modules/home-manager/git/default.nix

28 lines
645 B
Nix
Raw Normal View History

2022-01-18 09:32:55 +01:00
{ config, pkgs, ... }:
2023-08-13 20:13:46 +02:00
{
home.packages = [ pkgs.diff-so-fancy pkgs.tig pkgs.tea ];
2023-07-23 17:07:50 +02:00
programs.git = {
enable = true;
userName = "Ricard Illa";
userEmail = "rilla@monotremata.xyz";
signing = {
2023-08-01 10:42:38 +02:00
key = "0x101F79336E07C850";
2023-07-23 17:07:50 +02:00
signByDefault = true;
};
# delta = maybe?
extraConfig = {
core = {
editor = "${pkgs.neovim}/bin/nvim";
pager =
"${pkgs.diff-so-fancy}/bin/diff-so-fancy | ${pkgs.less}/bin/less --tabs=4 -RFX";
};
color.ui = true;
pull.rebase = false;
init.defaultBranch = "main";
diff-so-fancy.stripLeadingSymbols = false;
};
};
2022-01-18 09:32:55 +01:00
}