dot

NixOS dotfiles
git clone https://git.echoz.io/dot.git
Log | Files | Refs

commit 7722de2a055347ab810144ddb09930f36ccf0511
parent a9b215d42d675d67bf49040b0c720fea48c4f294
Author: Chris <chris@echoz.io>
Date:   Tue,  7 Oct 2025 11:13:11 +0200

feat: wrap rbw pinentry to allow unlocking without a display

Diffstat:
Mmodules/rbw/default.nix | 11++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/modules/rbw/default.nix b/modules/rbw/default.nix @@ -1,4 +1,7 @@ { + lib, + pkgs, + user, email, ... @@ -30,7 +33,13 @@ enable = true; settings = { email = email; - pinentry = config.programs.wayprompt.package; + pinentry = pkgs.writeShellScriptBin "rbw-pinentry-wrapper" '' + if [ -n "$WAYLAND_DISPLAY" ]; then + exec ${lib.getExe config.programs.wayprompt.package} "$@" + else + exec ${lib.getExe pkgs.pinentry-tty} "$@" + fi + ''; }; }; };