From 09b3d09c8589a4e6ecebc43b956190940107ec45 Mon Sep 17 00:00:00 2001 From: Mikael Voss Date: Tue, 27 Aug 2024 15:50:39 +0200 Subject: [PATCH] home: Provide password request dialog for SSH --- home/config/nil/desktop.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/home/config/nil/desktop.nix b/home/config/nil/desktop.nix index d97253e..e02eefb 100644 --- a/home/config/nil/desktop.nix +++ b/home/config/nil/desktop.nix @@ -28,6 +28,20 @@ let ''; }; in lib.getExe pkg; + + askpass = let + pkg = pkgs.writeShellApplication { + name = "fuzzel-askpass"; + text = '' + exec ${fuzzel} \ + --font=monospace \ + --prompt="󰣀 " \ + --password \ + --lines=0 \ + --dmenu + ''; + }; + in lib.getExe pkg; in lib.mkIf (osConfig.hardware.graphics.enable or false) { home.packages = with pkgs; [ calibre @@ -240,6 +254,8 @@ in lib.mkIf (osConfig.hardware.graphics.enable or false) { environment = { NIXOS_OZONE_WL = "1"; + SSH_ASKPASS = askpass; + SSH_ASKPASS_REQUIRE = "force"; TERMINAL = kitty; }; };