blob: 01b4277c38f53af6817d08f7d122c25f306bafdb (
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
40
41
42
43
44
|
{
config,
pkgs,
osConfig,
...
}: {
programs = {
gpg.enable = true;
git = {
enable = true;
extraConfig = {
init = {defaultBranch = "main";};
};
signing = {
key = "D31BD0D494BBEE86";
signByDefault = true;
};
userEmail = "[email protected]";
userName = "seth";
};
ssh = {
enable = true;
package = pkgs.openssh;
};
};
services.gpg-agent = {
enable = true;
enableBashIntegration = config.programs.bash.enable;
enableFishIntegration = config.programs.fish.enable;
enableZshIntegration = config.programs.zsh.enable;
pinentryFlavor =
if osConfig ? programs
then osConfig.programs.gnupg.agent.pinentryFlavor or "curses"
else "curses";
};
}
|