1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-22 19:19:45 +01:00

aerc: add support of account gpg config (#5298)

This commit is contained in:
Jany 2024-11-16 17:38:16 +00:00 committed by GitHub
parent 192f123e4b
commit d154a557da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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;