summaryrefslogtreecommitdiff
path: root/users/seth/programs/git.nix
blob: c86bc39f2f7681125b34af2540ed7438f295469c (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
32
33
34
35
36
37
38
39
40
41
42
{
  programs = {
    gh = {
      enable = true;
      settings = {
        git_protocol = "https";
        editor = "nvim";
        prompt = "enabled";
        # workaround for https://github.com/nix-community/home-manager/issues/474
        version = 1;
      };

      gitCredentialHelper = {
        enable = true;
        hosts = ["https://github.com" "https://github.example.com"];
      };
    };

    git = {
      enable = true;

      delta = {
        enable = true;
        options = {
          syntax-theme = "Catppuccin-mocha";
        };
      };

      extraConfig = {
        init = {defaultBranch = "main";};
      };

      signing = {
        key = "D31BD0D494BBEE86";
        signByDefault = true;
      };

      userEmail = "[email protected]";
      userName = "seth";
    };
  };
}