blob: 3fba0d3a3a91d9b0a351613f4841b5fea9472af7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
{
config,
lib,
pkgs,
osConfig,
...
}: {
programs.gpg.enable = true;
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";
};
}
|