From 322d63dd45ff1665a07ac5eb3e9626d24e711c97 Mon Sep 17 00:00:00 2001 From: hexchen Date: Thu, 3 Dec 2020 20:54:49 +0000 Subject: [PATCH] common: allow x forwarding --- configuration/common/default.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/configuration/common/default.nix b/configuration/common/default.nix index 9ef4c37..b618a68 100644 --- a/configuration/common/default.nix +++ b/configuration/common/default.nix @@ -31,12 +31,15 @@ in { nix.trustedUsers = [ "root" "@wheel" ]; environment.variables.EDITOR = "vim"; - services.openssh.enable = true; - services.openssh.ports = lib.mkDefault [ 62954 ]; - services.openssh.passwordAuthentication = false; - services.openssh.challengeResponseAuthentication = false; - services.openssh.permitRootLogin = lib.mkDefault "prohibit-password"; - services.openssh.extraConfig = "StreamLocalBindUnlink yes"; + services.openssh = { + enable = true; + ports = lib.mkDefault [ 62954 ]; + passwordAuthentication = false; + challengeResponseAuthentication = false; + permitRootLogin = lib.mkDefault "prohibit-password"; + extraConfig = "StreamLocalBindUnlink yes"; + forwardX11 = true; + }; security.sudo.wheelNeedsPassword = lib.mkDefault false; i18n.defaultLocale = "en_IE.UTF-8";