services/postgres: allow all users to access

This commit is contained in:
LavaDesu 2023-08-18 20:20:12 +07:00
parent e8f849de69
commit b9448b8533
Signed by: cilly
GPG key ID: 6500251E087653C9

View file

@ -1,4 +1,4 @@
{ config, ... }:
{ config, lib, ... }:
let
dir = "/persist/postgresql/${config.services.postgresql.package.psqlSchema}";
uid = toString config.ids.uids.postgres;
@ -8,5 +8,9 @@ in {
services.postgresql = {
enable = true;
dataDir = dir;
authentication = lib.mkOverride 10 ''
#type database DBuser auth-method
local all all trust
'';
};
}