summaryrefslogtreecommitdiff
path: root/profiles/core/git.nix
blob: 871ac7df0cec5d77be679be1633f17fdac855598 (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
28
29
30
31
{
  config,
  lib,
  ...
}:
with lib; {
  hm = {
    programs.git = {
      enable = true;
      userName = my.realName;
      userEmail = my.email;
      extraConfig = {
        worktree.guessRemote = true;
        mergetool.fugitive.cmd = "vim -f -c \"Gdiff\" \"$MERGED\"";
        merge.tool = "fugitive";
        gpg.format = "ssh";
        user.signingKey = "${config.my.home}/.ssh/id_ed25519_sk.pub";
        commit.gpgsign = true;
      };

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