From 95177a63d3289f877cb7690c672b12a520da2ea4 Mon Sep 17 00:00:00 2001 From: Astro Date: Tue, 20 Dec 2022 01:09:09 +0100 Subject: [PATCH] nixos-module: hack db config --- nixos-module.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos-module.nix b/nixos-module.nix index 2302b0a..1e36b5f 100644 --- a/nixos-module.nix +++ b/nixos-module.nix @@ -38,7 +38,7 @@ listen_port = cfg.listenPort; priv_key_file = cfg.privKeyFile; pub_key_file = cfg.pubKeyFile; - db = "postgres://${cfg.user}@localhost/${cfg.database}"; + db = "host=/var/run/postgresql user=${cfg.user} dbname=${cfg.database}"; }); in lib.mkIf cfg.enable {