infra/nix/home-manager/programs/gpg-agent.nix

25 lines
403 B
Nix
Raw Normal View History

2023-11-23 17:52:21 +01:00
{
lib,
pkgs,
config,
...
2024-11-15 10:17:56 +01:00
}:
{
home.packages = [ pkgs.gcr ];
programs.gpg.enable = true;
services.gpg-agent = {
enable = true;
enableScDaemon = true;
enableSshSupport = true;
grabKeyboardAndMouse = true;
2024-06-01 21:46:09 +02:00
pinentryPackage = lib.mkDefault pkgs.pinentry-gtk2;
extraConfig = ''
no-allow-external-cache
'';
defaultCacheTtl = 0;
maxCacheTtl = 0;
};
}