mirror of
https://github.com/nix-community/home-manager
synced 2024-11-24 21:53:18 +00:00
aerc: add support of account gpg config (#5298)
This commit is contained in:
parent
192f123e4b
commit
d154a557da
1 changed files with 8 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue