various: prefer `ints.between` over `enum` for int ranges

h7x4 32a00836 34fe1083

Changed files
+3 -21
nixos
modules
services
+1 -6
nixos/modules/services/monitoring/nezha-agent.nix
···
'';
};
report_delay = lib.mkOption {
-
type = lib.types.enum [
-
1
-
2
-
3
-
4
-
];
+
type = lib.types.ints.between 1 4;
default = 3;
description = ''
The interval between system status reportings.
+1 -8
nixos/modules/services/security/cfssl.nix
···
logLevel = lib.mkOption {
default = 1;
-
type = lib.types.enum [
-
0
-
1
-
2
-
3
-
4
-
5
-
];
+
type = lib.types.ints.between 0 5;
description = "Log level (0 = DEBUG, 5 = FATAL).";
};
+1 -7
nixos/modules/services/security/opensnitch.nix
···
};
LogLevel = lib.mkOption {
-
type = lib.types.enum [
-
0
-
1
-
2
-
3
-
4
-
];
+
type = lib.types.ints.between 0 4;
description = ''
Default log level from 0 to 4 (debug, info, important, warning,
error).