{ config, pkgs, ... }: { services.gpg-agent = { enable = true; enableExtraSocket = true; pinentryPackage = pkgs.pinentry-gnome3; }; programs.gpg = { enable = true; homedir = "${config.xdg.dataHome}/gnupg"; }; }