nixos/ethminer: always restart

This commit is contained in:
Fernando J Pando
2019-12-25 10:33:50 -05:00
parent 7a01e9096e
commit 90ee16dbfc
+3 -1
View File
@@ -71,7 +71,7 @@ in
maxPower = mkOption {
type = types.int;
default = 115;
default = 113;
description = "Miner max watt usage.";
};
@@ -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 = {