Files
nix-config/home/common/git.nix
ryan4yin ec485779ce feat: set hdmi0 to 1080p
feat: adjust alacritty's font size for linux
fix: errors in i3 config
feat: update i3blocks's scripts & style
2023-06-03 17:53:45 +08:00

51 lines
920 B
Nix

{
pkgs,
...
}: {
programs.git = {
enable = true;
lfs.enable = true;
userName = "Ryan Yin";
userEmail = "xiaoyin_c@qq.com";
includes = [
{
# use diffrent email & name for work
path = "~/mobiuspace/.gitconfig";
condition = "gitdir:~/mobiuspace/";
}
];
extraConfig = {
pull = {
rebase = true;
};
# replace https with ssh
url = {
"ssh://git@github.com/" = {
insteadOf = "https://github.com/";
};
"ssh://git@gitlab.com/" = {
insteadOf = "https://gitlab.com/";
};
"ssh://git@bitbucket.com/" = {
insteadOf = "https://bitbucket.com/";
};
};
};
# signing = {
# key = "xxx";
# signByDefault = true;
# };
delta = {
enable = true;
options = {
features = "side-by-side";
};
};
};
}