From 90e970690722f5e29d09aead4271dbb0f02edead Mon Sep 17 00:00:00 2001 From: David Crompton Date: Fri, 28 Mar 2025 13:48:01 -0400 Subject: [PATCH] ssh: Enable X11 (retrospective commit) --- machines/kcnhub/configuration.nix | 10 ++++++++++ machines/kcnhub/services/ssh.nix | 1 + 2 files changed, 11 insertions(+) diff --git a/machines/kcnhub/configuration.nix b/machines/kcnhub/configuration.nix index 226c448..79274d8 100644 --- a/machines/kcnhub/configuration.nix +++ b/machines/kcnhub/configuration.nix @@ -81,6 +81,16 @@ sops # Used for Key Generation age + + + # To try to make X11 forwarding work we install xauth + xorg.xauth + xorg.xhost + xorg.libX11 + xorg.libXext + xorg.libXrender + xorg.libXtst + xorg.xorgserver ]; nix.registry.nixpkgs.flake = nixpkgs; diff --git a/machines/kcnhub/services/ssh.nix b/machines/kcnhub/services/ssh.nix index 914b807..c8ceaaa 100644 --- a/machines/kcnhub/services/ssh.nix +++ b/machines/kcnhub/services/ssh.nix @@ -1,3 +1,4 @@ { ... }: { services.openssh.enable = true; + services.openssh.settings.X11Forwarding = true; }