2022-11-20 22:28:23 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: let
|
2021-05-30 19:10:28 +00:00
|
|
|
user = config.pub-solar.user;
|
|
|
|
xdg = config.home-manager.users."${user.name}".xdg;
|
2022-11-20 22:28:23 +00:00
|
|
|
in '' [user]
|
|
|
|
${
|
|
|
|
if user.email != null
|
|
|
|
then "email = ${user.email}"
|
|
|
|
else ""
|
|
|
|
}
|
|
|
|
${
|
|
|
|
if user.fullName != null
|
|
|
|
then "name = ${user.fullName}"
|
|
|
|
else ""
|
|
|
|
}
|
|
|
|
${
|
|
|
|
if user.gpgKeyId != null
|
|
|
|
then "signingkey = ${user.gpgKeyId}"
|
|
|
|
else ""
|
|
|
|
}
|
|
|
|
[core]
|
|
|
|
editor = /etc/profiles/per-user/${config.pub-solar.user.name}/bin/nvim
|
|
|
|
excludesFile = /home/${config.pub-solar.user.name}/.config/git/global_gitignore
|
|
|
|
[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
|
|
|
|
# define command which will be used when "nvim"is set as a merge tool
|
2021-11-29 16:15:00 +00:00
|
|
|
|
2022-11-20 22:28:23 +00:00
|
|
|
[mergetool]
|
|
|
|
prompt = false
|
|
|
|
[merge]
|
|
|
|
tool = nvim
|
|
|
|
[mergetool "nvim"]
|
|
|
|
cmd = /etc/profiles/per-user/${config.pub-solar.user.name}/bin/nvim -f -c \"Gdiffsplit!\" \"$MERGED\"
|
2021-11-29 16:15:00 +00:00
|
|
|
|
2022-11-20 22:28:23 +00:00
|
|
|
[commit]
|
|
|
|
gpgsign = true
|
|
|
|
template = ${xdg.configHome}/git/gitmessage
|
|
|
|
[tag]
|
|
|
|
gpgsign = true
|
|
|
|
[init]
|
|
|
|
defaultBranch = main
|
|
|
|
[pull]
|
|
|
|
rebase = false''
|