Unverified Commit 2032412f authored by jopejoe1's avatar jopejoe1 Committed by GitHub
Browse files

various: use more accurate int types (#445244)

parents c46a3cc1 a7a8289e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ in
      description = ''
        The user IDs used in NixOS.
      '';
      type = types.attrsOf types.int;
      type = types.attrsOf types.ints.u32;
    };

    ids.gids = lib.mkOption {
@@ -39,7 +39,7 @@ in
      description = ''
        The group IDs used in NixOS.
      '';
      type = types.attrsOf types.int;
      type = types.attrsOf types.ints.u32;
    };

  };
+8 −8
Original line number Diff line number Diff line
@@ -77,49 +77,49 @@ in
            SYS_UID_MIN = lib.mkOption {
              description = "Range of user IDs used for the creation of system users by useradd or newusers.";
              default = 400;
              type = lib.types.int;
              type = lib.types.ints.u32;
            };

            SYS_UID_MAX = lib.mkOption {
              description = "Range of user IDs used for the creation of system users by useradd or newusers.";
              default = 999;
              type = lib.types.int;
              type = lib.types.ints.u32;
            };

            UID_MIN = lib.mkOption {
              description = "Range of user IDs used for the creation of regular users by useradd or newusers.";
              default = 1000;
              type = lib.types.int;
              type = lib.types.ints.u32;
            };

            UID_MAX = lib.mkOption {
              description = "Range of user IDs used for the creation of regular users by useradd or newusers.";
              default = 29999;
              type = lib.types.int;
              type = lib.types.ints.u32;
            };

            SYS_GID_MIN = lib.mkOption {
              description = "Range of group IDs used for the creation of system groups by useradd, groupadd, or newusers";
              default = 400;
              type = lib.types.int;
              type = lib.types.ints.u32;
            };

            SYS_GID_MAX = lib.mkOption {
              description = "Range of group IDs used for the creation of system groups by useradd, groupadd, or newusers";
              default = 999;
              type = lib.types.int;
              type = lib.types.ints.u32;
            };

            GID_MIN = lib.mkOption {
              description = "Range of group IDs used for the creation of regular groups by useradd, groupadd, or newusers.";
              default = 1000;
              type = lib.types.int;
              type = lib.types.ints.u32;
            };

            GID_MAX = lib.mkOption {
              description = "Range of group IDs used for the creation of regular groups by useradd, groupadd, or newusers.";
              default = 29999;
              type = lib.types.int;
              type = lib.types.ints.u32;
            };

            TTYGROUP = lib.mkOption {
+1 −1
Original line number Diff line number Diff line
@@ -65,7 +65,7 @@ in
      };

      nice = lib.mkOption {
        type = lib.types.nullOr lib.types.int;
        type = lib.types.nullOr (lib.types.ints.between (-20) 19);
        default = null;
        description = ''
          Niceness of the compilation tasks.
+1 −1
Original line number Diff line number Diff line
@@ -72,7 +72,7 @@ in
      package = lib.mkPackageOption pkgs "journalwatch" { };

      priority = lib.mkOption {
        type = lib.types.int;
        type = lib.types.ints.between 0 7;
        default = 6;
        description = ''
          Lowest priority of message to be considered.
+1 −1
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ in
        description = "Password for mining server";
      };
      threads = lib.mkOption {
        type = lib.types.int;
        type = lib.types.ints.unsigned;
        default = 0;
        description = "Number of miner threads, defaults to available processors";
      };
Loading