From 0d516a3a2d5f1e476005662bd6a8af323e91d763 Mon Sep 17 00:00:00 2001 From: alejandro-angulo Date: Sat, 3 Aug 2024 22:54:39 -0700 Subject: [PATCH] Switch to pinentry-qt for graphical envs --- modules/home/programs/gpg/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 = [