diff options
| author | Nathan Perry <np@nathanperry.dev> | 2022-11-30 01:04:07 -0500 |
|---|---|---|
| committer | Nathan Perry <np@nathanperry.dev> | 2022-11-30 01:04:07 -0500 |
| commit | c91d488dc92cde8dab024d1e1b98fd471a00b9f5 (patch) | |
| tree | 9a08e4a4034e0bc4c5e8555f1a094c1877c87c04 | |
| parent | 7b81c1105558fdad28cd2555fa24cb06453e6ad6 (diff) | |
nix: include host in DATABASE_URL
| -rw-r--r-- | flake.nix | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -266,7 +266,7 @@ RESTRICT = lib.mkIf (cfg.restrictFile != null) "${cfg.restrictFile}"; USER_ID_MAPPING = lib.mkIf (cfg.userIdMappingFile != null) "${cfg.userIdMappingFile}"; - DATABASE_URL = lib.mkIf cfg.postgres.enable "postgres://${cfg.user}@/${cfg.postgres.db}"; + DATABASE_URL = lib.mkIf cfg.postgres.enable "postgres:///${cfg.postgres.db}?user=${cfg.user}&host=/var/run/postgresql"; }; systemd.services.thulani = { |
