From 5c274e6214c321a8ba90d473e3500989d6e84ed1 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Mon, 6 Jan 2025 10:26:17 +0530 Subject: kay/postgresql: init --- os/kay/modules/postgresql.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 os/kay/modules/postgresql.nix (limited to 'os/kay/modules/postgresql.nix') diff --git a/os/kay/modules/postgresql.nix b/os/kay/modules/postgresql.nix new file mode 100644 index 0000000..6f4d126 --- /dev/null +++ b/os/kay/modules/postgresql.nix @@ -0,0 +1,17 @@ +{ config, lib, pkgs, ... }: { + services.postgresql = { + enable = true; + package = with pkgs; postgresql_15; + authentication = lib.mkForce '' + #type database DBuser origin-address auth-method + # unix socket + local all all trust + # ipv4 + host all all 127.0.0.1/32 trust + # ipv6 + host all all ::1/128 trust + ''; + + settings.log_timezone = config.time.timeZone; + }; +} -- cgit v1.2.3