nixos/monero: prefer types.ints over addCheck

This commit is contained in:
h7x4 2025-09-12 02:30:30 +02:00
commit e74440f374
No known key found for this signature in database
GPG key ID: 9F2F7D8250F35146

View file

@ -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.