cgminer: respect xserver.display variable

This commit is contained in:
Anders Papitto 2016-07-05 19:17:40 -07:00
parent eba3f92ef9
commit 874df3fe70

View File

@ -126,7 +126,7 @@ in
environment = {
LD_LIBRARY_PATH = ''/run/opengl-driver/lib:/run/opengl-driver-32/lib'';
DISPLAY = ":0";
DISPLAY = ":${toString config.services.xserver.display}";
GPU_MAX_ALLOC_PERCENT = "100";
GPU_USE_SYNC_OBJECTS = "1";
};