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 + ''; + }; +}