nix-community / home-manager

Manage a user environment using Nix [maintainer=@rycee]
https://nix-community.github.io/home-manager/
MIT License
7.14k stars 1.85k forks source link

bug: neomutt & gpg - ambiguous specification of secret key #6085

Open alembiq opened 1 week ago

alembiq commented 1 week ago

Are you following the right branch?

Is there an existing issue for this?

Issue description

my home-manager defines multiple emails for single user, each email has designated pgp key

     home-manager.users.charles.accounts.email.accounts."charles@alembiq.net" = {
....
        gpg = {
          key = "4A72 ....";
          signByDefault = true;
        };
...

when i try to send an email from neomutt, it tries to sign the email, but I'm getting an error message: ambiguous specification of secret key 'charles@alembiq.net'

I didn't found any definition of the key in any of the files in ~/.config/neomutt/

Maintainer CC

@rycee

System information

- system: `"x86_64-linux"`
 - host os: `Linux 6.6.60, NixOS, 24.11 (Vicuna), 24.11.20241109.76612b1`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.24.10`
 - nixpkgs: `/nix/store/0sxsfzswhjck7f4sbsvznz285s4i7y64-source`