74 lines
1.3 KiB
Nix
Executable file
74 lines
1.3 KiB
Nix
Executable file
{
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
programs.git = {
|
|
enable = true;
|
|
lfs.enable = true;
|
|
|
|
signing = {
|
|
# key = "F68745A836CA0412";
|
|
# format = "openpgp";
|
|
# signByDefault = true;
|
|
};
|
|
|
|
settings = {
|
|
user.name = "_cry64";
|
|
user.email = "them@dobutterfliescry.net";
|
|
|
|
alias = {
|
|
s = "status";
|
|
d = "diff";
|
|
l = "log";
|
|
c = "commit";
|
|
p = "push";
|
|
};
|
|
|
|
color.ui = true;
|
|
core.editor = "hx";
|
|
github.user = "cry128";
|
|
|
|
init = {
|
|
defaultBranch = "main";
|
|
};
|
|
url = {
|
|
"git@github.com:" = {
|
|
insteadOf = [
|
|
"gh:"
|
|
"github:"
|
|
];
|
|
};
|
|
"https://gitlab.com/" = {
|
|
insteadOf = [
|
|
"gl:"
|
|
"gitlab:"
|
|
];
|
|
};
|
|
"git@codeberg.org:" = {
|
|
insteadOf = [
|
|
"cb:"
|
|
"codeberg:"
|
|
];
|
|
};
|
|
"git@tearforge.net/" = {
|
|
insteadOf = [
|
|
"cry:"
|
|
"forge:"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
|
|
includes = [
|
|
{
|
|
path = "/home/me/agribit/.gitconfig";
|
|
condition = "gitdir:/home/me/agribit/**";
|
|
}
|
|
# {
|
|
# path = "/home/me/luminary/.gitconfig";
|
|
# condition = "gitdir:/home/me/luminary/**";
|
|
# }
|
|
];
|
|
};
|
|
}
|