From 63ba91ac977cdb942ad279c617965a1decbd4b3b Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Sun, 10 May 2020 00:38:47 +0300 Subject: [PATCH] feat: postgres --- modules/applications/postgres.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 modules/applications/postgres.nix diff --git a/modules/applications/postgres.nix b/modules/applications/postgres.nix new file mode 100644 index 0000000..5255a00 --- /dev/null +++ b/modules/applications/postgres.nix @@ -0,0 +1,15 @@ +{ pkgs, lib, ... }: { + services.postgresql = { + enable = true; + package = pkgs.postgresql_10; + enableTCPIP = true; + + authentication = lib.mkForce '' + # Generated file; do not edit! + # TYPE DATABASE USER ADDRESS METHOD + local all all trust + host all all 127.0.0.1/32 trust + host all all ::1/128 trust + ''; + }; +}