nix-config/home/git/common.nix

27 lines
604 B
Nix
Raw Normal View History

2022-01-18 09:32:55 +01:00
{ config, pkgs, ... }:
{
2022-08-14 16:53:33 +02:00
home.packages = [ pkgs.diff-so-fancy pkgs.tig pkgs.tea ];
2022-01-18 09:32:55 +01:00
programs.git = {
enable = true;
userName = "Ricard Illa";
signing = {
key = "0x8333CFB0B9D3244D";
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;
2022-08-14 16:53:33 +02:00
init.defaultBranch = "main";
2022-01-18 09:32:55 +01:00
diff-so-fancy.stripLeadingSymbols = false;
};
};
}