cgminer: respect xserver.display variable

+1 -1
+1 -1
nixos/modules/services/misc/cgminer.nix
··· 126 126 127 127 environment = { 128 128 LD_LIBRARY_PATH = ''/run/opengl-driver/lib:/run/opengl-driver-32/lib''; 129 - DISPLAY = ":0"; 129 + DISPLAY = ":${toString config.services.xserver.display}"; 130 130 GPU_MAX_ALLOC_PERCENT = "100"; 131 131 GPU_USE_SYNC_OBJECTS = "1"; 132 132 };