home: Provide password request dialog for SSH

This commit is contained in:
Mikael 2024-08-27 15:50:39 +02:00
parent f0cd69c1a5
commit 09b3d09c85
Signed by: mikael
SSH key fingerprint: SHA256:21QyD2Meiot7jOUVitIR5YkGB/XuXdCvLW1hE6dsri0

View file

@ -28,6 +28,20 @@ let
''; '';
}; };
in lib.getExe pkg; 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) { in lib.mkIf (osConfig.hardware.graphics.enable or false) {
home.packages = with pkgs; [ home.packages = with pkgs; [
calibre calibre
@ -240,6 +254,8 @@ in lib.mkIf (osConfig.hardware.graphics.enable or false) {
environment = { environment = {
NIXOS_OZONE_WL = "1"; NIXOS_OZONE_WL = "1";
SSH_ASKPASS = askpass;
SSH_ASKPASS_REQUIRE = "force";
TERMINAL = kitty; TERMINAL = kitty;
}; };
}; };