nixos/ethminer: only pull in cudatoolkit when needed
This commit is contained in:
parent
8d51401e93
commit
5e38d36a6b
|
@ -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