diff options
author | Fernando J Pando <fernando.pando@stelligent.com> | 2019-12-14 10:01:31 -0500 |
---|---|---|
committer | Fernando J Pando <fernando.pando@stelligent.com> | 2019-12-25 10:33:50 -0500 |
commit | 90ee16dbfc92c4a3f6c045898c90799239f57b0d (patch) | |
tree | afc3deff453767108ff0a41d29354f1d482b3a42 | |
parent | 7a01e9096e94c924374eff58ace157ba2bcbc55d (diff) | |
download | nixpkgs-90ee16dbfc92c4a3f6c045898c90799239f57b0d.tar nixpkgs-90ee16dbfc92c4a3f6c045898c90799239f57b0d.tar.gz nixpkgs-90ee16dbfc92c4a3f6c045898c90799239f57b0d.tar.bz2 nixpkgs-90ee16dbfc92c4a3f6c045898c90799239f57b0d.tar.lz nixpkgs-90ee16dbfc92c4a3f6c045898c90799239f57b0d.tar.xz nixpkgs-90ee16dbfc92c4a3f6c045898c90799239f57b0d.tar.zst nixpkgs-90ee16dbfc92c4a3f6c045898c90799239f57b0d.zip |
nixos/ethminer: always restart
-rw-r--r-- | nixos/modules/services/misc/ethminer.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/modules/services/misc/ethminer.nix b/nixos/modules/services/misc/ethminer.nix index 2958cf21447..95afb0460fb 100644 --- a/nixos/modules/services/misc/ethminer.nix +++ b/nixos/modules/services/misc/ethminer.nix @@ -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 = { |