{ config, lib, ... }: with lib; let cfg = config.nixfiles.modules.gnupg; in { config = mkIf cfg.enable { programs.gnupg.agent = { enable = true; enableSSHSupport = true; }; }; }