From 0cc888cb861977435bfd90989888a370ec30a343 Mon Sep 17 00:00:00 2001 From: Wroclaw Date: Sat, 15 Mar 2025 13:36:25 +0100 Subject: [PATCH] nixos/gnupg: use nixos modle options --- nix-os/gnupg.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/nix-os/gnupg.nix b/nix-os/gnupg.nix index 1c9b20e..48ad562 100644 --- a/nix-os/gnupg.nix +++ b/nix-os/gnupg.nix @@ -5,11 +5,15 @@ # Use pcscd for smartcard support services.pcscd.enable = true; - environment.systemPackages = [( - pkgs.gnupg.overrideAttrs (superAttrs: { + programs.gnupg = { + package = pkgs.gnupg.overrideAttrs (superAttrs: { configureFlags = superAttrs.configureFlags or [] ++ [ "--disable-ccid-driver" ]; - }) - )]; + }); + agent = { + enable = true; + pinentryPackage = pkgs.pinentry-qt; + }; + }; }; }