Commit cf540f8c authored by Haylin Moore's avatar Haylin Moore
Browse files

treewide/nixos: move number typed port options to types.port

parent b791e74e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -178,12 +178,12 @@ in
      let
        ports = port: infoPort: {
          port = lib.mkOption {
            type = lib.types.int;
            type = lib.types.port;
            default = port;
            description = "RPC port";
          };
          infoPort = lib.mkOption {
            type = lib.types.int;
            type = lib.types.port;
            default = infoPort;
            description = "web UI port";
          };
+1 −1
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@ in
      };

      port = lib.mkOption {
        type = lib.types.ints.u16;
        type = lib.types.port;
        default = 50000;
        description = "Port to listen on.";
      };
+2 −2
Original line number Diff line number Diff line
@@ -861,7 +861,7 @@ in
          default = "localhost";
        };
        port = lib.mkOption {
          type = lib.types.int;
          type = lib.types.port;
          description = "Port for the MySQL database.";
          default = 3306;
        };
@@ -901,7 +901,7 @@ in
          default = "localhost";
        };
        port = lib.mkOption {
          type = lib.types.int;
          type = lib.types.port;
          description = "Port for the Postgres database.";
          default = 5432;
        };
+1 −1
Original line number Diff line number Diff line
@@ -135,7 +135,7 @@ in
      };

      port = lib.mkOption {
        type = lib.types.nullOr lib.types.int;
        type = lib.types.nullOr lib.types.port;
        default = null;
        description = ''
          Port number to bind to.
+1 −1
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@ let
        description = "The address to bind to. Localhost if null";
      };
      port = mkOption {
        type = natural';
        type = port;
        default = 10030;
        description = "Tcp port to bind to";
      };
Loading