nixos/programs/gpg.nix

24 lines
426 B
Nix
Raw Normal View History

2024-06-16 10:10:36 +00:00
{ config, lib, pkgs, ... }:
{
programs.gpg.enable = true;
services.gpg-agent = {
enable = true;
enableZshIntegration = true;
defaultCacheTtl = 1800;
pinentryPackage = pkgs.pinentry-qt;
};
# configFile."gnupg/gpg-agent.conf" = {
# text = ''
# default-cache-ttl 3600
# pinentry-program ${pkgs.pinentry}/bin/pinentry
# '';
# };
home.packages = with pkgs; [
pinentry
];
}