mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
nixos/ethminer: only pull in cudatoolkit when needed
This commit is contained in:
parent
8d51401e93
commit
5e38d36a6b
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ in
|
|||
config = mkIf cfg.enable {
|
||||
|
||||
systemd.services.ethminer = {
|
||||
path = [ pkgs.cudatoolkit ];
|
||||
path = optional (cfg.toolkit == "cuda") [ pkgs.cudatoolkit ];
|
||||
description = "ethminer ethereum mining service";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
after = [ "network.target" ];
|
||||
|
|
Loading…
Reference in a new issue