postgresql: Fix the port option

Also clarify the description of the enableTCPIP option.
This commit is contained in:
Eelco Dolstra 2013-11-27 12:36:32 +01:00
parent 469ce846c3
commit c6529ac9eb
1 changed files with 6 additions and 3 deletions

View File

@ -30,6 +30,7 @@ let
hba_file = '${pkgs.writeText "pg_hba.conf" cfg.authentication}' hba_file = '${pkgs.writeText "pg_hba.conf" cfg.authentication}'
ident_file = '${pkgs.writeText "pg_ident.conf" cfg.identMap}' ident_file = '${pkgs.writeText "pg_ident.conf" cfg.identMap}'
log_destination = 'stderr' log_destination = 'stderr'
port = ${toString cfg.port}
${cfg.extraConfig} ${cfg.extraConfig}
''; '';
@ -63,9 +64,9 @@ in
port = mkOption { port = mkOption {
type = types.int; type = types.int;
default = "5432"; default = 5432;
description = '' description = ''
Port for PostgreSQL. The port on which PostgreSQL listens.
''; '';
}; };
@ -105,7 +106,9 @@ in
type = types.bool; type = types.bool;
default = false; default = false;
description = '' description = ''
Whether to run PostgreSQL with -i flag to enable TCP/IP connections. Whether PostgreSQL should listen on all network interfaces.
If disabled, the database can only be accessed via its Unix
domain socket or via TCP connections to localhost.
''; '';
}; };