I’m trying to add a new UID to my GPG key using `gpg --edit-key`, but the `adduid` command fails silently without prompting for a passphrase.
GPG returns to the prompt immediately after showing “Secret key is needed.”
Environment
**NixOS**: 25.05 - **Window Manager**: Niri (Wayland compositor, no X11)
**Shell**: Ion Shell
**Terminal**: Running in a terminal emulator under Niri (not a raw TTY)
**GPG Version**: 2.4.9 ## Current NixOS Configuration
By adding that you’re probably running two agents. Wouldn’t be surprised if that’s the ussue.
programs.gnupg.agentsets up a systemd service, no need to manually start an agent. The GPG_TTY variable is also already set for you, assuming your shell correctly inherits its environment.
it doesn’t matter if I set this two lines inside my shell, the result is always the same.
I tried bash instead of ion, also the same result.
The issue should not be the two settings inside the shell config.