Skip to content

Commit

Permalink
Merge pull request #1298 from k3yss/work/keys/postgres-fix
Browse files Browse the repository at this point in the history
Assign PGHOST to runtimeDir as default
  • Loading branch information
domenkozar committed Jul 4, 2024
2 parents 1dac8dc + 2e3b76c commit 2e6c99c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/modules/services/postgres.nix
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,7 @@ in
packages = [ postgresPkg startScript ];

env.PGDATA = config.env.DEVENV_STATE + "/postgres";
env.PGHOST =
if cfg.listen_addresses == ""
then runtimeDir
else cfg.listen_addresses;
env.PGHOST = lib.mkDefault runtimeDir;
env.PGPORT = cfg.port;

services.postgres.settings = {
Expand Down

0 comments on commit 2e6c99c

Please sign in to comment.