aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorNathan Perry <np@nathanperry.dev>2022-11-30 01:04:07 -0500
committerNathan Perry <np@nathanperry.dev>2022-11-30 01:04:07 -0500
commitc91d488dc92cde8dab024d1e1b98fd471a00b9f5 (patch)
tree9a08e4a4034e0bc4c5e8555f1a094c1877c87c04 /flake.nix
parent7b81c1105558fdad28cd2555fa24cb06453e6ad6 (diff)
nix: include host in DATABASE_URL
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix
index d83334b..a65e833 100644
--- a/flake.nix
+++ b/flake.nix
@@ -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 = {