update alias for xdum and xdumstop in shell.nix

This commit is contained in:
2025-02-06 16:17:09 +01:00
parent f7077e9f76
commit f4574ea286

View File

@ -1,9 +1,12 @@
{ pkgs ? import <nixpkgs> {} }: { pkgs ? import <nixpkgs> {} }:
pkgs.mkShell { pkgs.mkShell {
nativeBuildInputs = with pkgs; [ libGL xorg.libX11 libGLU glfw ffmpeg xorg.xvfb]; nativeBuildInputs = with pkgs; [ libGL xorg.libX11 libGLU glfw ffmpeg xorg.xvfb];
__NV_PRIME_RENDER_OFFLOAD="1";
__GLX_VENDOR_LIBRARY_NAME="nvidia";
shellHook='' shellHook=''
alias xdum="Xvfb :99 -screen 0 1920x1080x24 +extension GLX +render -noreset & export DISPLAY=:99"; alias xdum="sudo Xorg :99 -noreset & export DISPLAY=:99";
alias xdumstop='pkill Xvfb' alias xdumstop='sudo pkill Xorg'
make -j; make -j;
''; '';
} }