summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2022-10-08 07:46:57 -0400
committerKjetil Orbekk <kj@orbekk.com>2022-10-08 07:50:20 -0400
commit0a7e53a85abacb298f410b4ff8ca1b7ea035924c (patch)
treefa0e766d0ba360c70fd0598204bb08a5eeb9c880 /modules
parent84a22943c6ec17291dc18fc68f392f7392083b34 (diff)
Allow remote connections to postgesql
Diffstat (limited to 'modules')
-rw-r--r--modules/bridge.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/bridge.nix b/modules/bridge.nix
index c47cb4e..e494715 100644
--- a/modules/bridge.nix
+++ b/modules/bridge.nix
@@ -13,6 +13,10 @@ with lib;
config = mkIf cfg.enable {
services.postgresql = {
enable = true;
+ enableTCPIP = true;
+ authentication = ''
+ host all all 2001:470:8e2e:1000::/64 md5
+ '';
ensureDatabases = [ "bridge_nightly" ];
ensureUsers = [
{