nixos/ethminer: only pull in cudatoolkit when needed

This commit is contained in:
Bjørn Forsman 2021-12-12 16:50:48 +01:00
parent 8d51401e93
commit 5e38d36a6b

View file

@ -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" ];