aboutsummaryrefslogtreecommitdiff
path: root/programs/git.nix
blob: 1a2bc7227a0f2d908abc69f6aa92c3e73c5da311 (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
43
44
45
46
47
48
{ config
, pkgs
, theme
, ...
}:

with theme;
{
  programs.git = {
    enable = true;
    ignores = [ ".envrc" ];
    userEmail = "[email protected]";
    userName = "Akshay";
    delta = {
      enable = true;
      options = {
        features = "decorations labels";
        syntax-theme = "none";
        zero-style = "8";
        navigate = "true";
        keep-plus-minus-markers = "true";
        decorations = {
          file-decoration-style = "none";
          whitespace-error-style = "22 reverse";
          minus-style = "${base08}";
          minus-emph-style = "${base08} bold";
          plus-style = "${base0B}";
          plus-emph-style = "${base0B} bold";
          file-style = "7 italic";
          hunk-header-style = "7";
          hunk-header-decoration-style = "8 ul";
        };
        labels = {
          file-modified-label = " MODIFIED ";
          file-removed-label = " REMOVED ";
          file-added-label = " ADDED ";
          file-renamed-label = " RENAMED ";
        };
      };
    };
    extraConfig = {
      commit.verbose = true;
      core = {
        hooksPath = "/home/np/.hooks";
      };
    };
  };
}