nixos/ethminer: only pull in cudatoolkit when needed

main
Bjørn Forsman 3 years ago
parent 8d51401e93
commit 5e38d36a6b
  1. 2
      nixos/modules/services/misc/ethminer.nix

@ -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…
Cancel
Save