1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
{ config , pkgs , ... }: { programs.gpg = { enable = true; homedir = "${config.xdg.dataHome}/gnupg"; settings = { keyserver = "hkps://keys.openpgp.org"; }; }; services.gpg-agent = { enable = true; pinentryPackage = with pkgs; if stdenv.isDarwin then pinentry_mac else pinentry-qt; }; }