aerc: add support of account gpg config

This commit is contained in:
Jany Doe 2024-04-19 14:15:23 +03:00
parent b1a5b3d6a5
commit 80f456dc25
No known key found for this signature in database
GPG key ID: 59E8E5599B3095C5

View file

@ -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;