Gpg-agent long delay starting

hello all, i’m newby on nixos, i installed nixos last week.

I use the gpg-agent but i have a issue with it, it start with a lot of delay after to log on.

i would like to add the parameter “–no-allow-external-cache” at launch.

how can i do it in the configuration.nix file ?

i saw that some did it in the context that they use also home-manager but it is not my case!

they did add that : services.gpg-agent.extraConfig = “no-allow-external-cache”;

Use this:

    programs.gnupg.agent = {
      settings = {
        no-allow-external-cache = "";
      };
    };

See the NixOS option