blob: b8cac6338db7cddd6e3d2c423b4a2956149dd514 (
plain) (
blame)
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
65
|
{
config,
lib,
pkgs,
...
}: let
cfg = config.sils.git;
in {
options.sils.git.enable = lib.mkEnableOption "sils git config";
config = lib.mkIf cfg.enable {
programs = {
git = {
enable = true;
package = pkgs.gitFull;
settings = {
user = {
name = "Silas Schöffel";
email = "sils@sils.li";
};
signing = {
key = "467B7D129EA73AC9";
signByDefault = false;
};
core = {
autocrlf = "input";
};
safe = {
directory = "/etc/nixos";
};
push = {
autoSetupRemote = true;
};
init = {
defaultBranch = "main";
};
commit = {
verbose = true;
};
sendemail = {
smtpserver = "mail.foss-syndicate.org";
smtpuser = "sils@sils.li";
smtpencryption = "ssl";
smtpserverport = "465";
};
};
aliases = {
recommit = "commit --file=.git/COMMIT_EDITMSG --edit";
};
};
delta = {
enable = true;
enableGitIntegration = true;
options = {
decorations = {
commit-decoration-style = "bold purple box ul";
file-decoration-style = "none";
file-style = "bold red ul";
};
features = "decorations";
whitespace-error-style = "22 reverse";
};
};
};
};
}
|