{ config, lib, pkgs, ... }: with lib; { config = mkIf (!config.home.isolation.active) { programs.gpg = { enable = true; scdaemonSettings.disable-ccid = true; }; services.gpg-agent = { enable = true; enableBashIntegration = true; enableZshIntegration = true; enableExtraSocket = true; enableSshSupport = true; defaultCacheTtl = 7200; defaultCacheTtlSsh = 7200; maxCacheTtl = 21600; maxCacheTtlSsh = 21600; pinentryFlavor = "gtk2"; }; }; }