diff options
author | Anders Papitto <anderspapitto@gmail.com> | 2016-07-05 19:17:40 -0700 |
---|---|---|
committer | Anders Papitto <anderspapitto@gmail.com> | 2016-07-05 19:17:40 -0700 |
commit | 874df3fe7006c64d494ca7c3860d6a2ce3ecf73c (patch) | |
tree | f7b876b90a3296b43bfeec97f4de956409290285 /nixos/modules/services/misc/cgminer.nix | |
parent | eba3f92ef912b5b50ad40e20474fafa04c6e5ca7 (diff) | |
download | nixpkgs-874df3fe7006c64d494ca7c3860d6a2ce3ecf73c.tar nixpkgs-874df3fe7006c64d494ca7c3860d6a2ce3ecf73c.tar.gz nixpkgs-874df3fe7006c64d494ca7c3860d6a2ce3ecf73c.tar.bz2 nixpkgs-874df3fe7006c64d494ca7c3860d6a2ce3ecf73c.tar.lz nixpkgs-874df3fe7006c64d494ca7c3860d6a2ce3ecf73c.tar.xz nixpkgs-874df3fe7006c64d494ca7c3860d6a2ce3ecf73c.tar.zst nixpkgs-874df3fe7006c64d494ca7c3860d6a2ce3ecf73c.zip |
cgminer: respect xserver.display variable
Diffstat (limited to 'nixos/modules/services/misc/cgminer.nix')
-rw-r--r-- | nixos/modules/services/misc/cgminer.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/misc/cgminer.nix b/nixos/modules/services/misc/cgminer.nix index 868dc87f723..5f97cc03414 100644 --- a/nixos/modules/services/misc/cgminer.nix +++ b/nixos/modules/services/misc/cgminer.nix @@ -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"; }; |