From d154a557da07645aaea3b3375317c234cf2eed82 Mon Sep 17 00:00:00 2001 From: Jany <127505435+janydoe@users.noreply.github.com> Date: Sat, 16 Nov 2024 17:38:16 +0000 Subject: [PATCH] aerc: add support of account gpg config (#5298) --- modules/programs/aerc-accounts.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/programs/aerc-accounts.nix b/modules/programs/aerc-accounts.nix index 6a6153e5e..04f0165a0 100644 --- a/modules/programs/aerc-accounts.nix +++ b/modules/programs/aerc-accounts.nix @@ -230,8 +230,15 @@ in { else { }; + gpgCfg = account: + optionalAttrs (account.gpg != null) { + pgp-key-id = account.gpg.key; + pgp-auto-sign = account.gpg.signByDefault; + pgp-opportunistic-encrypt = account.gpg.encryptByDefault; + }; + in (basicCfg account) // (sourceCfg account) // (outgoingCfg account) - // account.aerc.extraAccounts; + // (gpgCfg account) // account.aerc.extraAccounts; mkAccountConfig = name: account: mapAttrNames (addAccountName name) account.aerc.extraConfig;