diff --git a/modules/nitrokey-gpg-smartcard.nix b/modules/nitrokey-gpg-smartcard.nix index 6d6f9dd..858af20 100644 --- a/modules/nitrokey-gpg-smartcard.nix +++ b/modules/nitrokey-gpg-smartcard.nix @@ -18,7 +18,10 @@ # Restart gpg-agent after config change. # Otherwise there might be a gpg error about "no pinentry". # https://discourse.nixos.org/t/cant-get-gnupg-to-work-no-pinentry/15373/19 - # But how to restart it? Maybe this? + # + # But how to restart it? + # https://superuser.com/a/1150399 + # gpgconf --kill gpg-agent # killall gpg-agent # systemctl --user restart gpg-agent @@ -27,6 +30,8 @@ # TODO: gpg-agent pinentry problem # https://github.com/NixOS/nixpkgs/issues/97861 + # TODO: Maybe GNOME is overriding the SSH agent socket that is set elswhere by NixOS? + # https://wiki.archlinux.org/title/GnuPG#GNOME_on_Wayland_overrides_SSH_agent_socket # # gpgconf --check-programs #=> gpgconf: error running '/nix/store/lvsbmqy4dmlri22145hbr6799hgbnpnf-gnupg-2.4.0/bin/pinentry': probably not installed