Simplify pinentry-rofi
usage
This commit is contained in:
parent
bfa2f177d3
commit
3788823072
1 changed files with 7 additions and 19 deletions
|
@ -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 = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue