diff options
| author | Bjørn Forsman <bjorn.forsman@gmail.com> | 2022-04-04 19:27:06 +0200 |
|---|---|---|
| committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2022-04-06 19:13:42 +0200 |
| commit | 7cc6478c34772118a7413faeebe646c2ae8e76b5 (patch) | |
| tree | 28b7ce8201dc44562fa9e5400947b1f298098840 | |
| parent | nixos/ethminer: fix option types for maxPower, recheckInterval (diff) | |
| download | nixpkgs-7cc6478c34772118a7413faeebe646c2ae8e76b5.tar.gz | |
nixos/ethminer: only pull in nvidia_x11 when needed
Only people using CUDA need it.
(cherry picked from commit c1af79c69d248d5bc55df8ffbe86a1122a0b897e)
| -rw-r--r-- | nixos/modules/services/misc/ethminer.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/misc/ethminer.nix b/nixos/modules/services/misc/ethminer.nix index a6c52e394996..253476d1a23e 100644 --- a/nixos/modules/services/misc/ethminer.nix +++ b/nixos/modules/services/misc/ethminer.nix @@ -97,7 +97,7 @@ in Restart = "always"; }; - environment = { + environment = mkIf (cfg.toolkit == "cuda") { LD_LIBRARY_PATH = "${config.boot.kernelPackages.nvidia_x11}/lib"; }; |
