nixos-module: hack db config

This commit is contained in:
Astro 2022-12-20 01:09:09 +01:00
parent 285ad182b4
commit 95177a63d3

View File

@ -38,7 +38,7 @@
listen_port = cfg.listenPort; listen_port = cfg.listenPort;
priv_key_file = cfg.privKeyFile; priv_key_file = cfg.privKeyFile;
pub_key_file = cfg.pubKeyFile; pub_key_file = cfg.pubKeyFile;
db = "postgres://${cfg.user}@localhost/${cfg.database}"; db = "host=/var/run/postgresql user=${cfg.user} dbname=${cfg.database}";
}); });
in in
lib.mkIf cfg.enable { lib.mkIf cfg.enable {