Askpass for niri

This commit is contained in:
Curt Spark 2024-06-01 22:43:46 +01:00
parent af04df6f9d
commit 7425d5b06c
3 changed files with 15 additions and 4 deletions

View File

@ -204,7 +204,7 @@
# programs.mtr.enable = true; # programs.mtr.enable = true;
programs.gnupg.agent = { programs.gnupg.agent = {
enable = true; enable = true;
enableSSHSupport = true; # enableSSHSupport = true;
}; };
# List services that you want to enable: # List services that you want to enable:

View File

@ -46,7 +46,9 @@ in
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1"; QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
SDL_VIDEODRIVER = "wayland"; SDL_VIDEODRIVER = "wayland";
_JAVA_AWT_WM_NONREPARENTING = "1"; _JAVA_AWT_WM_NONREPARENTING = "1";
SSH_ASKPASS = "lxqt-openssh-askpass"; SSH_ASKPASS_REQUIRE = "force";
SSH_ASKPASS = "/run/current-system/sw/bin/lxqt-openssh-askpass";
MOZ_ENABLE_WAYLAND = "1";
# Enable native wayland support for chromium and electron based applications # Enable native wayland support for chromium and electron based applications
NIXOS_OZONE_WL = "1"; NIXOS_OZONE_WL = "1";
}; };

View File

@ -104,6 +104,11 @@ in
]; ];
}; };
programs.ssh = {
enableAskPassword = true;
askPassword = "/run/current-system/sw/bin/lxqt-openssh-askpass";
};
environment.sessionVariables = { environment.sessionVariables = {
TERM = "foot"; TERM = "foot";
QT_QPA_PLATFORM = "wayland"; QT_QPA_PLATFORM = "wayland";
@ -111,7 +116,9 @@ in
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1"; QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
SDL_VIDEODRIVER = "wayland"; SDL_VIDEODRIVER = "wayland";
_JAVA_AWT_WM_NONREPARENTING = "1"; _JAVA_AWT_WM_NONREPARENTING = "1";
SSH_ASKPASS = "lxqt-openssh-askpass"; SSH_ASKPASS_REQUIRE = "force";
SSH_ASKPASS = "/run/current-system/sw/bin/lxqt-openssh-askpass";
MOZ_ENABLE_WAYLAND = "1";
# Enable native wayland support for chromium and electron based applications # Enable native wayland support for chromium and electron based applications
NIXOS_OZONE_WL = "1"; NIXOS_OZONE_WL = "1";
}; };
@ -122,7 +129,9 @@ in
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1"; QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
SDL_VIDEODRIVER = "wayland"; SDL_VIDEODRIVER = "wayland";
_JAVA_AWT_WM_NONREPARENTING = "1"; _JAVA_AWT_WM_NONREPARENTING = "1";
SSH_ASKPASS = lib.mkForce "lxqt-openssh-askpass"; SSH_ASKPASS_REQUIRE = "force";
SSH_ASKPASS = lib.mkForce "/run/current-system/sw/bin/lxqt-openssh-askpass";
MOZ_ENABLE_WAYLAND = "1";
# Enable native wayland support for chromium and electron based applications # Enable native wayland support for chromium and electron based applications
NIXOS_OZONE_WL = "1"; NIXOS_OZONE_WL = "1";
}; };