blob: 825ef7dd947f918a4ca7497a7c8cc6761d56f4e5 (
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
|
{
config,
lib,
...
}:
{
options.git.enable = lib.mkEnableOption "Enable git";
config = lib.mkIf config.git.enable {
programs.git = {
enable = true;
userName = "schererleander";
userEmail = "leander@schererleander.de";
aliases = {
st = "status";
co = "checkout";
br = "branch";
};
signing = {
key = "506793F115464BB4";
signByDefault = true;
};
ignores = [
"*~"
".DS_Store"
];
diff-highlight.enable = true;
extraConfig = {
pull.rebase = true;
url."git@github.com:".insteadOf = "https://github.com";
};
};
};
}
|