summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2017-03-13 16:47:30 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2017-03-13 16:47:30 +0100
commitc27b598b314fb93886008ab671817eef67929872 (patch)
treef0b74b1618cdfe1238da78559131f5ebb3d41b76
parent3e5936afb361125e64c28f5cef150e208e967ca7 (diff)
downloadnixos-c27b598b314fb93886008ab671817eef67929872.tar
nixos-c27b598b314fb93886008ab671817eef67929872.tar.gz
nixos-c27b598b314fb93886008ab671817eef67929872.tar.bz2
nixos-c27b598b314fb93886008ab671817eef67929872.tar.xz
nixos-c27b598b314fb93886008ab671817eef67929872.zip
Enable connections via tcp/ip to postgresql
-rw-r--r--bragi.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/bragi.nix b/bragi.nix
index ea1b7821..871d3e6c 100644
--- a/bragi.nix
+++ b/bragi.nix
@@ -385,8 +385,10 @@ in rec {
385 385
386 services.postgresql = { 386 services.postgresql = {
387 enable = true; 387 enable = true;
388 enableTCPIP = true;
388 authentication = lib.mkForce '' 389 authentication = lib.mkForce ''
389 local all all peer 390 local all all peer
391 host all all 10.141.0.0/16 md5
390 ''; 392 '';
391 initialScript = pkgs.writeText "schema.sql" '' 393 initialScript = pkgs.writeText "schema.sql" ''
392 CREATE USER thermoprint; 394 CREATE USER thermoprint;