From e332161e7a793f77e00003dcedd2d62f85c8e641 Mon Sep 17 00:00:00 2001 From: tomoron Date: Mon, 3 Feb 2025 16:53:25 +0100 Subject: [PATCH] add alias to shell.nix to make a dummy x11 session --- shell.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/shell.nix b/shell.nix index 016fa2c..4b3d7ae 100644 --- a/shell.nix +++ b/shell.nix @@ -1,6 +1,10 @@ { pkgs ? import {} }: pkgs.mkShell { - nativeBuildInputs = with pkgs; [ libGL xorg.libX11 libGLU glfw ffmpeg]; - shellHook="make -j"; + nativeBuildInputs = with pkgs; [ libGL xorg.libX11 libGLU glfw ffmpeg xorg.xvfb]; + shellHook='' + alias xdum="Xvfb :99 -screen 0 1920x1080x24 +extension GLX +render -noreset & export DISPLAY=:99"; + alias xdumstop='pkill Xvfb' + make -j; + ''; }