summaryrefslogtreecommitdiff
path: root/os/kay/modules/postgresql.nix
diff options
context:
space:
mode:
Diffstat (limited to 'os/kay/modules/postgresql.nix')
-rw-r--r--os/kay/modules/postgresql.nix22
1 files changed, 14 insertions, 8 deletions
diff --git a/os/kay/modules/postgresql.nix b/os/kay/modules/postgresql.nix
index 79d0b12..6ba5398 100644
--- a/os/kay/modules/postgresql.nix
+++ b/os/kay/modules/postgresql.nix
@@ -1,15 +1,21 @@
-{ config, lib, pkgs, ... }: {
+{
+ 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
+ #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;