-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgit.nix
64 lines (53 loc) · 1.62 KB
/
git.nix
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{pkgs, ...}: {
home.packages = with pkgs; [
difftastic
];
programs.git = {
enable = true;
# components
delta.enable = true;
lfs.enable = true;
# user
userEmail = "bryce.z.berger@gmail.com";
userName = "Bryce Berger";
signing = {
key = "FDBF801F1CE5FB66EC3075C058CA4F9FEF8F4296";
signByDefault = true;
};
extraConfig = {
init.defaultBranch = "main";
merge.conflictstyle = "zdiff3";
diff.colorMoved = "default";
diff = {
tool = "kitty";
};
difftool."kitty" = {
cmd = "kitty +kitten diff $LOCAL $REMOTE";
};
difftool."difft" = {
cmd = "${pkgs.difftastic}/bin/difft --color always $LOCAL $REMOTE | ${pkgs.delta}/bin/delta";
};
delta = {
navigate = true;
syntax-theme = "Catppuccin-mocha";
# side-by-side = true;
features = "custom-theme";
custom-theme = {
minus-style = "syntax '#5E3F53'";
minus-non-emph-style = "syntax '#5E3F53'";
minus-emph-style = "syntax '#89556B'";
minus-empty-line-marker-style = "normal '#734A5F'";
plus-style = "syntax '#475951'";
plus-non-emph-style = "syntax '#475951'";
plus-emph-style = "syntax '#628168'";
plus-empty-line-marker-styl = "normal '#628168'";
map-styles = "bold purple => syntax '#4D4365', bold cyan => syntax '#3B4766'";
blame-palette = "#11111b #1e1e2e #313244";
file-style = "bright-yellow";
hunk-header-style = "bold syntax";
line-numbers = "true";
};
};
};
};
}