rice/programs/git.nix

52 lines
938 B
Nix
Raw Normal View History

2022-07-22 20:42:05 +00:00
_: {
home-manager.users.buffet = {
programs.git = {
enable = true;
userEmail = "dev@buffet.sh";
userName = "buffet";
difftastic = {
enable = true;
background =
if (import ../theme.nix).light
then "light"
else "dark";
};
aliases = {
a = "add";
b = "branch";
c = "commit --verbose";
m = "commit --amend --verbose";
d = "diff";
ds = "diff --stat";
dc = "diff --cached";
2022-09-20 13:35:50 +00:00
l = "log";
2022-07-22 20:42:05 +00:00
s = "status -s";
co = "checkout";
cob = "checkout -b";
};
2022-09-06 18:24:39 +00:00
signing = {
key = "EBAC355935FD7382";
signByDefault = true;
};
2022-07-22 20:42:05 +00:00
extraConfig = {
init = {
defaultBranch = "master";
};
2022-12-20 13:48:52 +00:00
push = {
autoSetupRemote = true;
};
2023-01-11 15:57:27 +00:00
pull = {
ff = "only";
};
2022-07-22 20:42:05 +00:00
};
};
};
}