{ config, lib, ... }:

{
  options.local.services.gnupg = with lib; {
    enable = mkEnableOption "gnupg service";
  };

  config = lib.mkIf config.local.services.gnupg.enable {
    programs.gnupg.agent = {
      enable = true;
      enableSSHSupport = true;
    };
  };
}