Simplify pinentry-rofi usage
Some checks failed
BUILD x86_64-linux.picard
UPLOAD x86_64-linux.picard
DOWNLOAD x86_64-linux.picard
CACHIX x86_64-linux.picard
ATTIC x86_64-linux.picard
EVAL x86_64-linux.picard
/ test (push) Successful in 48s

This commit is contained in:
Andrea Ciceri 2025-01-14 17:39:03 +01:00
parent bfa2f177d3
commit 3788823072
Signed by: aciceri
SSH key fingerprint: SHA256:/AagBweyV4Hlfg9u092n8hbHwD5fcB6A3qhDiDA65Rg

View file

@ -2,25 +2,13 @@
{ {
services.gpg-agent = { services.gpg-agent = {
enable = true; enable = true;
enableSshSupport = true; pinentryPackage = pkgs.pinentry-rofi.override {
extraConfig = rofi = pkgs.rofi-wayland;
let };
pinentryRofi = pkgs.writeShellApplication { extraConfig = ''
name = "pinentry-rofi-with-env"; allow-emacs-pinentry
runtimeInputs = with pkgs; [ allow-loopback-pinentry
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
'';
}; };
programs.gpg = { programs.gpg = {