summaryrefslogtreecommitdiff
path: root/profiles/core/git.nix
blob: b1d3ea64ce2be36411173e1c7c70ac99953c548d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{config,lib, ...}: with lib;
{
  hm = {
    programs.git = {
      enable = true;
      userName = ivi.realName;
      userEmail = if config.networking.hostName == "work" then "mike@pionative.com" else ivi.email;
      extraConfig = {
        worktree.guessRemote = true;
        mergetool.fugitive.cmd = "vim -f -c \"Gdiff\" \"$MERGED\"";
        merge.tool = "fugitive";
        gpg.format = "ssh";
        user.signingKey = "${config.ivi.home}/.ssh/id_ed25519_sk.pub";
        commit.gpgsign = true;
      };

      ignores = [
        "/.direnv/"
        "/.envrc"
        "/.env"
        ".vimsession.vim"
        "tfplan"
        "plan"
      ];
    };
  };
}