2021-05-30 19:10:28 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
user = config.pub-solar.user;
|
|
|
|
xdg = config.home-manager.users."${user.name}".xdg;
|
|
|
|
in '' [user]
|
|
|
|
${
|
|
|
|
if user.email != null
|
|
|
|
then "email = ${user.email}"
|
|
|
|
else ""
|
|
|
|
}
|
|
|
|
${
|
2024-08-14 07:38:05 +00:00
|
|
|
if user.name != null
|
|
|
|
then "name = ${user.name}"
|
2021-05-30 19:10:28 +00:00
|
|
|
else ""
|
|
|
|
}
|
|
|
|
${
|
|
|
|
if user.gpgKeyId != null
|
|
|
|
then "signingkey = ${user.gpgKeyId}"
|
2022-11-20 22:28:23 +00:00
|
|
|
else ""
|
|
|
|
}
|
2021-05-30 19:10:28 +00:00
|
|
|
[core]
|
|
|
|
editor = /etc/profiles/per-user/${config.pub-solar.user.name}/bin/nvim
|
2022-01-05 22:20:06 +00:00
|
|
|
excludesFile = /home/${config.pub-solar.user.name}/.config/git/global_gitignore
|
2021-05-30 19:10:28 +00:00
|
|
|
[alias]
|
|
|
|
pol = pull
|
|
|
|
ack = -c color.grep.linenumber=\"bold yellow\"\n -c color.grep.filename=\"bold green\"\n -c color.grep.match=\"reverse yellow\"\n grep --break --heading --line-number
|
2024-08-14 07:38:05 +00:00
|
|
|
lg = "!f() { \
|
|
|
|
git log --all --color --graph --pretty=format:'%C(bold yellow)<sig>%G?</sig>%C(reset) %C(red)%h%C(reset) -%C(yellow)%d%C(reset) %s %C(green)(%cr) %C(blue)<%an>%C(reset)' | \
|
|
|
|
sed \
|
|
|
|
-e 's#<sig>G</sig>#Good#' \
|
|
|
|
-e 's#<sig>B</sig>#\\nBAD \\nBAD \\nBAD \\nBAD \\nBAD#' \
|
|
|
|
-e 's#<sig>U</sig>#Unknown#' \
|
|
|
|
-e 's#<sig>X</sig>#Expired#' \
|
|
|
|
-e 's#<sig>Y</sig>#Expired Key#' \
|
|
|
|
-e 's#<sig>R</sig>#Revoked#' \
|
|
|
|
-e 's#<sig>E</sig>#Missing Key#' \
|
|
|
|
-e 's#<sig>N</sig>#None#' | \
|
|
|
|
less -r; \
|
|
|
|
}; f"
|
2021-11-29 16:15:00 +00:00
|
|
|
|
2021-05-30 19:10:28 +00:00
|
|
|
[mergetool]
|
|
|
|
prompt = false
|
2021-11-29 16:15:00 +00:00
|
|
|
[merge]
|
|
|
|
tool = nvim
|
|
|
|
[mergetool "nvim"]
|
|
|
|
cmd = /etc/profiles/per-user/${config.pub-solar.user.name}/bin/nvim -f -c \"Gdiffsplit!\" \"$MERGED\"
|
|
|
|
|
2021-05-30 19:10:28 +00:00
|
|
|
[commit]
|
|
|
|
gpgsign = true
|
2022-04-30 19:25:38 +00:00
|
|
|
template = ${xdg.configHome}/git/gitmessage
|
2021-05-30 19:10:28 +00:00
|
|
|
[tag]
|
|
|
|
gpgsign = true
|
|
|
|
[init]
|
|
|
|
defaultBranch = main
|
|
|
|
[pull]
|
|
|
|
rebase = false''
|