nix: add option for postgres port
This commit is contained in:
parent
b0e012c4fe
commit
6398aaf663
1 changed files with 6 additions and 7 deletions
|
@ -22,6 +22,7 @@ let
|
||||||
STATIC_ROOT = (builtins.toPath cfg.stateDir) + "/static";
|
STATIC_ROOT = (builtins.toPath cfg.stateDir) + "/static";
|
||||||
POSTGRES_HOST = cfg.database.host;
|
POSTGRES_HOST = cfg.database.host;
|
||||||
POSTGRES_USER = cfg.database.user;
|
POSTGRES_USER = cfg.database.user;
|
||||||
|
POSTGRES_PORT = (toString cfg.database.port);
|
||||||
POSTGRES_DB = cfg.database.database;
|
POSTGRES_DB = cfg.database.database;
|
||||||
REDIS_ACTIVITY_HOST = cfg.activityRedis.host;
|
REDIS_ACTIVITY_HOST = cfg.activityRedis.host;
|
||||||
REDIS_ACTIVITY_PORT = (toString cfg.activityRedis.port);
|
REDIS_ACTIVITY_PORT = (toString cfg.activityRedis.port);
|
||||||
|
@ -152,13 +153,11 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
# this is currently hardcoded
|
port = mkOption {
|
||||||
|
type = types.int;
|
||||||
# port = mkOption {
|
default = config.services.postgresql.port;
|
||||||
# type = types.int;
|
description = "Port of the Postgresql server to connect to.";
|
||||||
# default = config.services.postgresql.port;
|
};
|
||||||
# description = "Port of the Postgresql server to connect to.";
|
|
||||||
#};
|
|
||||||
|
|
||||||
database = mkOption {
|
database = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
|
|
Loading…
Add table
Reference in a new issue