.dotfiles/profiles/common/home/gpg-agent.nix
2024-07-25 14:41:23 +02:00

15 lines
306 B
Nix

{ pkgs, ... }:
{
services.gpg-agent = {
enable = true;
enableSshSupport = true;
enableExtraSocket = true;
pinentryPackage = pkgs.pinentry.gtk2;
defaultCacheTtl = 600;
maxCacheTtl = 7200;
extraConfig = ''
allow-loopback-pinentry
allow-emacs-pinentry
'';
};
}