From 272823e343faba94c2d62308d35a9f45289952ca Mon Sep 17 00:00:00 2001 From: Gabriel Fontes Date: Mon, 24 Jun 2024 16:49:02 -0300 Subject: [PATCH] feat(hosts/ssh): fix --- home/gabriel/features/cli/ssh.nix | 4 +--- hosts/common/global/openssh.nix | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/home/gabriel/features/cli/ssh.nix b/home/gabriel/features/cli/ssh.nix index d77ce052..8638d68c 100644 --- a/home/gabriel/features/cli/ssh.nix +++ b/home/gabriel/features/cli/ssh.nix @@ -30,9 +30,7 @@ in { } ]; setEnv.WAYLAND_DISPLAY = "/%d/.waypipe/display"; - extraConfig = '' - StreamLocalBindUnlink yes - ''; + extraOptions.StreamLocalBindUnlink = "yes"; }; }; }; diff --git a/hosts/common/global/openssh.nix b/hosts/common/global/openssh.nix index 5cc061ac..bc3d484d 100644 --- a/hosts/common/global/openssh.nix +++ b/hosts/common/global/openssh.nix @@ -21,6 +21,8 @@ in { StreamLocalBindUnlink = "yes"; # Allow forwarding ports to everywhere GatewayPorts = "clientspecified"; + # Let WAYLAND_DISPLAY be forwarded + AcceptEnv = "WAYLAND_DISPLAY"; }; hostKeys = [