rice/users/buffet/git.nix
buffet bdd755bb4e feat(git): switch from master to main
I feel like it has found wide-spread adaption by now.
2024-05-20 12:06:16 +02:00

40 lines
675 B
Nix

_: {
home-manager.users.buffet = {
programs.git = {
enable = true;
userEmail = "dev@buffet.sh";
userName = "buffet";
aliases = {
b = "branch";
c = "commit --verbose";
m = "commit --amend --verbose";
d = "diff";
ds = "diff --stat";
dc = "diff --cached";
l = "log";
s = "status -s";
};
signing = {
key = "EBAC355935FD7382";
};
extraConfig = {
branch = {
sort = "-committerdate";
};
push = {
autoSetupRemote = true;
};
pull = {
ff = "only";
};
};
};
};
}