security.loginDefs.settings.UID_MAX

Range of user IDs used for the creation of regular users by useradd or newusers.

Type
32 bit unsigned integer; between 0 and 4294967295 (both inclusive)
Default
29999
Declared
<nixpkgs/nixos/modules/programs/shadow.nix>