From 2c970b76e421f3cd5162ed534468c07936667b41 Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Thu, 18 Apr 2024 19:29:54 -0400 Subject: [PATCH] global/gpg: fix pinentry flavor handling --- users/modules/global/gpg.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users/modules/global/gpg.nix b/users/modules/global/gpg.nix index 2f25bcd..f5e866f 100644 --- a/users/modules/global/gpg.nix +++ b/users/modules/global/gpg.nix @@ -23,7 +23,7 @@ services.gpg-agent = { enable = true; - pinentryFlavor = (if main.services.xserver.enable then "qt" else "curses"); + pinentryPackage = (if main.info.graphical then pkgs.pinentry-qt else pkgs.pinentry-curses); extraConfig = '' allow-emacs-pinentry allow-loopback-pinentry