blob: 290a1e8b65129e8fe689da199d6a56c96a89d0ae (
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
|
{
config,
lib,
...
}: let
cfg = config.getchoo.programs.git;
inherit (lib) mkEnableOption mkIf;
in {
options.getchoo.programs.git.enable = mkEnableOption "git" // {default = true;};
config = mkIf cfg.enable {
programs = {
gh = {
enable = true;
settings = {
git_protocol = "ssh";
editor = "nvim";
prompt = "enabled";
};
};
git = {
enable = true;
extraConfig = {
init = {defaultBranch = "main";};
};
signing = {
key = "D31BD0D494BBEE86";
signByDefault = true;
};
userEmail = "[email protected]";
userName = "seth";
};
};
};
}
|