diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2017-03-13 16:47:30 +0100 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2017-03-13 16:47:30 +0100 |
| commit | c27b598b314fb93886008ab671817eef67929872 (patch) | |
| tree | f0b74b1618cdfe1238da78559131f5ebb3d41b76 | |
| parent | 3e5936afb361125e64c28f5cef150e208e967ca7 (diff) | |
| download | nixos-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.nix | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -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; |
