nixos/monero: prefer `types.ints` over `addCheck`

h7x4 e74440f3 3c811c4f

Changed files
+3 -3
nixos
modules
services
networking
+3 -3
nixos/modules/services/networking/monero.nix
···
};
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.
···
};
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.
···
};
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.