This repository has been archived on 2024-01-18. You can view files and clone it, but cannot push or open issues/pull-requests.
2023-07-09 16:40:37 +00:00
|
|
|
{config, ...}: let
|
2023-07-06 19:32:19 +00:00
|
|
|
key = "0xB853ADA5DA7BBF7A";
|
2023-06-28 20:48:01 +00:00
|
|
|
in {
|
|
|
|
programs.git = {
|
|
|
|
enable = true;
|
|
|
|
userName = "jolheiser";
|
|
|
|
userEmail = "john.olheiser@gmail.com";
|
|
|
|
signing = {
|
|
|
|
signByDefault = true;
|
|
|
|
key = key;
|
|
|
|
};
|
|
|
|
aliases = {
|
|
|
|
wt = "worktree";
|
|
|
|
ci = "commit -s -S -m";
|
|
|
|
br = "branch";
|
|
|
|
aa = "add .";
|
|
|
|
adog = "log --all --decorate --oneline --graph";
|
|
|
|
poh = "push origin HEAD";
|
|
|
|
cb = "checkout -b";
|
|
|
|
fu = "fetch upstream";
|
|
|
|
fo = "fetch origin";
|
|
|
|
};
|
2023-07-09 18:05:01 +00:00
|
|
|
lfs.enable = true;
|
2023-07-06 19:32:19 +00:00
|
|
|
ignores = [".idea/"];
|
2023-06-28 20:48:01 +00:00
|
|
|
extraConfig = {
|
|
|
|
init.defaultBranch = "main";
|
|
|
|
merge.conflictstyle = "diff3";
|
|
|
|
diff.colorMoved = "default";
|
2023-07-03 01:55:05 +00:00
|
|
|
core.editor = "hx";
|
2023-06-28 20:48:01 +00:00
|
|
|
};
|
|
|
|
delta = {
|
|
|
|
enable = true;
|
|
|
|
options = {
|
|
|
|
features = "ctp-mocha";
|
|
|
|
navigate = true;
|
|
|
|
light = false;
|
|
|
|
line-numbers = true;
|
|
|
|
side-by-side = true;
|
|
|
|
};
|
|
|
|
};
|
2023-07-07 16:20:01 +00:00
|
|
|
includes = [
|
|
|
|
{
|
|
|
|
condition = "gitdir:~/ndlegis/";
|
|
|
|
path = "${config.xdg.configHome}/git/work-config";
|
|
|
|
}
|
|
|
|
];
|
2023-06-28 20:48:01 +00:00
|
|
|
};
|
|
|
|
}
|