diff options
Diffstat (limited to 'programs/git.nix')
-rw-r--r-- | programs/git.nix | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/programs/git.nix b/programs/git.nix new file mode 100644 index 0000000..1a2bc72 --- /dev/null +++ b/programs/git.nix | |||
@@ -0,0 +1,48 @@ | |||
1 | { config | ||
2 | , pkgs | ||
3 | , theme | ||
4 | , ... | ||
5 | }: | ||
6 | |||
7 | with theme; | ||
8 | { | ||
9 | programs.git = { | ||
10 | enable = true; | ||
11 | ignores = [ ".envrc" ]; | ||
12 | userEmail = "[email protected]"; | ||
13 | userName = "Akshay"; | ||
14 | delta = { | ||
15 | enable = true; | ||
16 | options = { | ||
17 | features = "decorations labels"; | ||
18 | syntax-theme = "none"; | ||
19 | zero-style = "8"; | ||
20 | navigate = "true"; | ||
21 | keep-plus-minus-markers = "true"; | ||
22 | decorations = { | ||
23 | file-decoration-style = "none"; | ||
24 | whitespace-error-style = "22 reverse"; | ||
25 | minus-style = "${base08}"; | ||
26 | minus-emph-style = "${base08} bold"; | ||
27 | plus-style = "${base0B}"; | ||
28 | plus-emph-style = "${base0B} bold"; | ||
29 | file-style = "7 italic"; | ||
30 | hunk-header-style = "7"; | ||
31 | hunk-header-decoration-style = "8 ul"; | ||
32 | }; | ||
33 | labels = { | ||
34 | file-modified-label = " MODIFIED "; | ||
35 | file-removed-label = " REMOVED "; | ||
36 | file-added-label = " ADDED "; | ||
37 | file-renamed-label = " RENAMED "; | ||
38 | }; | ||
39 | }; | ||
40 | }; | ||
41 | extraConfig = { | ||
42 | commit.verbose = true; | ||
43 | core = { | ||
44 | hooksPath = "/home/np/.hooks"; | ||
45 | }; | ||
46 | }; | ||
47 | }; | ||
48 | } | ||