blob: 59b5f4f22ede1b97b84a4c6d1e032bab0294147c (
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
45
|
{
config,
lib,
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 = lib.mkIf pkgs.stdenv.isLinux {
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";
};
}
|