mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 13:40:28 +03:00
treewide: switch to port type for nixos modules
This commit is contained in:
parent
5108c96e98
commit
ad866e565d
26 changed files with 36 additions and 36 deletions
|
@ -449,7 +449,7 @@ in
|
|||
'';
|
||||
};
|
||||
port = mkOption {
|
||||
type = types.int;
|
||||
type = types.port;
|
||||
default = 9000;
|
||||
description = lib.mdDoc ''
|
||||
Minio listen port.
|
||||
|
|
|
@ -49,7 +49,7 @@ in
|
|||
};
|
||||
|
||||
port = mkOption {
|
||||
type = types.int;
|
||||
type = types.port;
|
||||
default = if cfg.database.type == "pgsql" then 5442 else 3306;
|
||||
defaultText = literalExpression "3306";
|
||||
description = lib.mdDoc "Database host port.";
|
||||
|
|
|
@ -96,7 +96,7 @@ in
|
|||
};
|
||||
|
||||
port = mkOption {
|
||||
type = types.int;
|
||||
type = types.port;
|
||||
description = lib.mdDoc "Database host port.";
|
||||
default = {
|
||||
mysql = 3306;
|
||||
|
|
|
@ -51,7 +51,7 @@ in
|
|||
|
||||
server = {
|
||||
port = mkOption {
|
||||
type = types.int;
|
||||
type = types.port;
|
||||
description = lib.mdDoc "The port of the Zabbix server to connect to.";
|
||||
default = 10051;
|
||||
};
|
||||
|
@ -78,7 +78,7 @@ in
|
|||
};
|
||||
|
||||
port = mkOption {
|
||||
type = types.int;
|
||||
type = types.port;
|
||||
default =
|
||||
if cfg.database.type == "mysql" then config.services.mysql.port
|
||||
else if cfg.database.type == "pgsql" then config.services.postgresql.port
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue