{ config, lib, pkgs, ... }: { # SSH forwarding services.openssh = { settings = { X11Forwarding = true; X11UseLocalhost = true; # bind forwarded displays to loopback only }; }; # sshd needs xauth to create the forwarded display's cookie programs.ssh.setXAuthLocation = true; # Install avidemux and xauth environment.systemPackages = with pkgs; [ avidemux xauth ]; }