Skip to content

Commit

Permalink
nixos/ethminer: always restart
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando J Pando committed Dec 25, 2019
1 parent 7a01e90 commit 90ee16d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nixos/modules/services/misc/ethminer.nix
Expand Up @@ -71,7 +71,7 @@ in

maxPower = mkOption {
type = types.int;
default = 115;
default = 113;
description = "Miner max watt usage.";
};

Expand All @@ -92,7 +92,9 @@ in

serviceConfig = {
DynamicUser = true;
ExecStartPre = "${pkgs.ethminer}/bin/.ethminer-wrapped --list-devices";
ExecStartPost = optional (cfg.toolkit == "cuda") "+${getBin config.boot.kernelPackages.nvidia_x11}/bin/nvidia-smi -pl ${toString cfg.maxPower}";
Restart = "always";
};

environment = {
Expand Down

0 comments on commit 90ee16d

Please sign in to comment.