diff --git a/modules/home/programs/gpg/default.nix b/modules/home/programs/gpg/default.nix index 90b155c..f683ab2 100644 --- a/modules/home/programs/gpg/default.nix +++ b/modules/home/programs/gpg/default.nix @@ -32,7 +32,10 @@ in { # see here: https://github.com/nix-community/home-manager/issues/3864 services.gpg-agent = mkIf (system == "x86_64-linux") { enable = true; - pinentryPackage = pkgs.pinentry-curses; + pinentryPackage = + if config.${namespace}.windowManagers.sway.enable + then pkgs.pinentry-qt + else pkgs.pinentry-curses; enableZshIntegration = true; enableSshSupport = true; sshKeys = [