diff --git a/hmModules/gpg/default.nix b/hmModules/gpg/default.nix index a894c90..f245f26 100644 --- a/hmModules/gpg/default.nix +++ b/hmModules/gpg/default.nix @@ -2,25 +2,13 @@ { services.gpg-agent = { enable = true; - enableSshSupport = true; - extraConfig = - let - pinentryRofi = pkgs.writeShellApplication { - name = "pinentry-rofi-with-env"; - runtimeInputs = with pkgs; [ - coreutils - rofi-wayland - ]; - text = '' - "${pkgs.pinentry-rofi}/bin/pinentry-rofi" "$@" - ''; - }; - in - '' - allow-emacs-pinentry - allow-loopback-pinentry - pinentry-program ${pinentryRofi}/bin/pinentry-rofi-with-env - ''; + pinentryPackage = pkgs.pinentry-rofi.override { + rofi = pkgs.rofi-wayland; + }; + extraConfig = '' + allow-emacs-pinentry + allow-loopback-pinentry + ''; }; programs.gpg = {