lib.types.user: use genid_uint31

Refs https://github.com/systemd/systemd/issues/11026
This commit is contained in:
tv 2018-12-02 14:14:03 +01:00
parent 5c6f751028
commit bd4a4c2faa

View File

@ -3,7 +3,7 @@
let let
inherit (lib) inherit (lib)
all any attrNames concatMapStringsSep concatStringsSep const filter flip all any attrNames concatMapStringsSep concatStringsSep const filter flip
genid hasSuffix head isInt isString length mergeOneOption mkOption genid_uint31 hasSuffix head isInt isString length mergeOneOption mkOption
mkOptionType optional optionalAttrs optionals range splitString mkOptionType optional optionalAttrs optionals range splitString
stringLength substring test testString typeOf; stringLength substring test testString typeOf;
inherit (lib.types) inherit (lib.types)
@ -365,7 +365,7 @@ rec {
}; };
uid = mkOption { uid = mkOption {
type = int; type = int;
default = genid config.name; default = genid_uint31 config.name;
}; };
}; };
}); });
@ -377,7 +377,7 @@ rec {
}; };
gid = mkOption { gid = mkOption {
type = int; type = int;
default = genid config.name; default = genid_uint31 config.name;
}; };
}; };
}); });