nixos/programs/gpg.nix
2024-06-16 12:10:36 +02:00

24 lines
426 B
Nix

{ 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
];
}