This commit is contained in:
Shelvacu
2025-06-05 20:52:32 -07:00
committed by Shelvacu on fw
parent fcc914e8bd
commit 9b48055ed0

View File

@@ -104,12 +104,17 @@ in
ensureDatabases = [ "root" ] ++ map (d: d.name) databases;
settings.listen_addresses = lib.mkForce "0.0.0.0";
identMap = ''
admins "${config.users.users.postgres.name}" /.*/
admins root /.*/
login-as postgres postgres
login-as root postgres
login-as root root
login-as postgres gallerygrab
login-as root gallerygrab
login-as shelvacu gallerygrab
'';
authentication = lib.mkForce ''
local all all peer map=admins
local all postgres peer
${authText}
local all all peer map=login-as
'';
};