{ 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 ""} ${if user.fullName != null then "name = ${user.fullName}" else ""} ${if user.gpgKeyId != null then "signingkey = ${user.gpgKeyId}" else ""} [core] 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 [mergetool] prompt = false [commit] template = ${xdg.configHome}/git/gitmessage [init] defaultBranch = main [pull] rebase = false''