2
0
Fork 0

nix: add option for postgres port

This commit is contained in:
D Anzorge 2021-05-27 18:15:46 +02:00
parent b0e012c4fe
commit 6398aaf663

View file

@ -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;