nixos/ethminer: fix option types for maxPower, recheckInterval

Neither power nor time intervals can be negative, let's use unsigned
int.
main
Bjørn Forsman 3 years ago
parent 5e38d36a6b
commit 966953354c
  1. 4
      nixos/modules/services/misc/ethminer.nix

@ -22,7 +22,7 @@ in
};
recheckInterval = mkOption {
type = types.int;
type = types.ints.unsigned;
default = 2000;
description = "Interval in milliseconds between farm rechecks.";
};
@ -70,7 +70,7 @@ in
};
maxPower = mkOption {
type = types.int;
type = types.ints.unsigned;
default = 113;
description = "Miner max watt usage.";
};

Loading…
Cancel
Save