{pkgs, cfg, ... }: { services.pcscd.enable = true; programs.gnupg.agent = { enable = true; enableSSHSupport = true; enableBrowserSocket = true; enableExtraSocket = true; pinentryFlavor = "gtk2"; }; environment.systemPackages = with pkgs; [ pinentry-curses gpg-tui gnupg ]; }