mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-22 17:39:56 +01:00
feat: adjust alacritty's font size for linux fix: errors in i3 config feat: update i3blocks's scripts & style
51 lines
920 B
Nix
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";
|
|
};
|
|
};
|
|
};
|
|
} |