modules/browsers: remove ssh x11 forwarding to fix keyboard layout

This commit is contained in:
Dmitriy Pleshevskiy 2024-09-04 10:34:51 +03:00
parent 292fc5930f
commit 9c7be1d64e
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2

View file

@ -18,7 +18,7 @@ let
if [ -z "$(ssh-keygen -F $host)" ]; then
ssh-keyscan -H $host >> ~/.ssh/known_hosts
fi
ssh -X -o PubkeyAuthentication=no kira@$host $@
ssh -o PubkeyAuthentication=no kira@$host $@
'';
hostBrowserScript = pkgs.writeScriptBin "${p.meta.mainProgram}" ''
@ -82,6 +82,7 @@ in
bindMounts = lib.mkMerge [
{
"/tmp/.X11-unix" = {};
"/etc/ssh/keys" = {
isReadOnly = false;
hostPath = "/persistence/per-machine/browsers/etc/ssh/keys";
@ -117,7 +118,6 @@ in
services.openssh = {
enable = true;
settings = {
X11Forwarding = true;
PasswordAuthentication = true;
MaxAuthTries = 1;
};
@ -143,6 +143,7 @@ in
};
environment.sessionVariables = {
DISPLAY = ":0";
PULSE_SERVER = "tcp:${hostAddress}:4713";
};
};