39 lines
756 B
Nix
39 lines
756 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
let
|
|
inherit (config.my) username mail;
|
|
in
|
|
{
|
|
config = {
|
|
programs.git = {
|
|
enable = true;
|
|
lfs.enable = true;
|
|
extraConfig = {
|
|
user = {
|
|
name = username;
|
|
email = mail.personal.user;
|
|
};
|
|
init.defaultBranch = "main";
|
|
commit.verbose = true;
|
|
push.autoSetupRemote = true;
|
|
pull.rebase = true;
|
|
merge.conflictStyle = "diff3";
|
|
rerere.enabled = true;
|
|
rebase = {
|
|
abbreviateCommands = true;
|
|
autoSquash = true;
|
|
autoStash = true;
|
|
};
|
|
alias = {
|
|
graph = "log --graph --oneline --branches";
|
|
root = "rev-parse --show-toplevel";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|