modules/browsers: remove ssh x11 forwarding to fix keyboard layout
This commit is contained in:
parent
292fc5930f
commit
9c7be1d64e
1 changed files with 3 additions and 2 deletions
|
@ -18,7 +18,7 @@ let
|
||||||
if [ -z "$(ssh-keygen -F $host)" ]; then
|
if [ -z "$(ssh-keygen -F $host)" ]; then
|
||||||
ssh-keyscan -H $host >> ~/.ssh/known_hosts
|
ssh-keyscan -H $host >> ~/.ssh/known_hosts
|
||||||
fi
|
fi
|
||||||
ssh -X -o PubkeyAuthentication=no kira@$host $@
|
ssh -o PubkeyAuthentication=no kira@$host $@
|
||||||
'';
|
'';
|
||||||
|
|
||||||
hostBrowserScript = pkgs.writeScriptBin "${p.meta.mainProgram}" ''
|
hostBrowserScript = pkgs.writeScriptBin "${p.meta.mainProgram}" ''
|
||||||
|
@ -82,6 +82,7 @@ in
|
||||||
|
|
||||||
bindMounts = lib.mkMerge [
|
bindMounts = lib.mkMerge [
|
||||||
{
|
{
|
||||||
|
"/tmp/.X11-unix" = {};
|
||||||
"/etc/ssh/keys" = {
|
"/etc/ssh/keys" = {
|
||||||
isReadOnly = false;
|
isReadOnly = false;
|
||||||
hostPath = "/persistence/per-machine/browsers/etc/ssh/keys";
|
hostPath = "/persistence/per-machine/browsers/etc/ssh/keys";
|
||||||
|
@ -117,7 +118,6 @@ in
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
X11Forwarding = true;
|
|
||||||
PasswordAuthentication = true;
|
PasswordAuthentication = true;
|
||||||
MaxAuthTries = 1;
|
MaxAuthTries = 1;
|
||||||
};
|
};
|
||||||
|
@ -143,6 +143,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.sessionVariables = {
|
environment.sessionVariables = {
|
||||||
|
DISPLAY = ":0";
|
||||||
PULSE_SERVER = "tcp:${hostAddress}:4713";
|
PULSE_SERVER = "tcp:${hostAddress}:4713";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue