From f4574ea286829122851a0cf30bd4e0e18dadca20 Mon Sep 17 00:00:00 2001 From: tomoron Date: Thu, 6 Feb 2025 16:17:09 +0100 Subject: [PATCH] update alias for xdum and xdumstop in shell.nix --- shell.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/shell.nix b/shell.nix index 4b3d7ae..c2b1275 100644 --- a/shell.nix +++ b/shell.nix @@ -1,9 +1,12 @@ { pkgs ? import {} }: pkgs.mkShell { nativeBuildInputs = with pkgs; [ libGL xorg.libX11 libGLU glfw ffmpeg xorg.xvfb]; + + __NV_PRIME_RENDER_OFFLOAD="1"; + __GLX_VENDOR_LIBRARY_NAME="nvidia"; shellHook='' - alias xdum="Xvfb :99 -screen 0 1920x1080x24 +extension GLX +render -noreset & export DISPLAY=:99"; - alias xdumstop='pkill Xvfb' + alias xdum="sudo Xorg :99 -noreset & export DISPLAY=:99"; + alias xdumstop='sudo pkill Xorg' make -j; ''; }