diff --git a/modules/nixos/programs/browsers/default.nix b/modules/nixos/programs/browsers/default.nix index a5b85f4..726e215 100644 --- a/modules/nixos/programs/browsers/default.nix +++ b/modules/nixos/programs/browsers/default.nix @@ -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"; }; };