mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
nixos/monero: prefer types.ints over addCheck
This commit is contained in:
parent
3c811c4f71
commit
e74440f374
1 changed files with 3 additions and 3 deletions
|
|
@ -107,7 +107,7 @@ in
|
|||
};
|
||||
|
||||
mining.threads = lib.mkOption {
|
||||
type = lib.types.addCheck lib.types.int (x: x >= 0);
|
||||
type = lib.types.ints.unsigned;
|
||||
default = 0;
|
||||
description = ''
|
||||
Number of threads used for mining.
|
||||
|
|
@ -174,7 +174,7 @@ in
|
|||
};
|
||||
|
||||
limits.threads = lib.mkOption {
|
||||
type = lib.types.addCheck lib.types.int (x: x >= 0);
|
||||
type = lib.types.ints.unsigned;
|
||||
default = 0;
|
||||
description = ''
|
||||
Maximum number of threads used for a parallel job.
|
||||
|
|
@ -183,7 +183,7 @@ in
|
|||
};
|
||||
|
||||
limits.syncSize = lib.mkOption {
|
||||
type = lib.types.addCheck lib.types.int (x: x >= 0);
|
||||
type = lib.types.ints.unsigned;
|
||||
default = 0;
|
||||
description = ''
|
||||
Maximum number of blocks to sync at once.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue