mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-27 20:01:29 +01:00
38 lines
589 B
Nix
38 lines
589 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;
|
|
};
|
|
};
|
|
|
|
# signing = {
|
|
# key = "xxx";
|
|
# signByDefault = true;
|
|
# };
|
|
|
|
delta = {
|
|
enable = true;
|
|
options = {
|
|
features = "side-by-side";
|
|
};
|
|
};
|
|
};
|
|
} |