blob: 9ed3868d21b6b3b5fee140ded87a4e9ea922c2e1 (
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
|
{
config,
lib,
pkgs,
...
}:
# gpg - GNU Privacy Guard
{
options.security.gpg = {
enable = lib.mkEnableOption "Enables gpg.";
};
config = lib.mkIf config.security.gpg.enable {
programs.gpg = {
enable = true;
};
services.gpg-agent = {
enable = true;
enableZshIntegration = true;
defaultCacheTtl = 3600;
maxCacheTtl = 86400;
enableSshSupport = config.security.ssh.enable;
pinentry.package = pkgs.pinentry-gtk2;
};
};
}
|