allow root to log in as any user locally

This commit is contained in:
Jeffrey C. Ollie 2023-09-25 13:06:06 -05:00
parent 7c6222cbc9
commit 8e09451dee
Signed by: jeff
GPG key ID: 6F86035A6D97044E

View file

@ -537,10 +537,18 @@
hostnossl replication all all reject hostnossl replication all all reject
hostssl replication all all scram-sha-256 hostssl replication all all scram-sha-256
''; '';
identFile = pkgs.writeTextDir "pg_ident.conf" '' identFile = pkgs.writeTextDir "pg_ident.conf" (
default root postgres ''
default postgres postgres default root postgres
''; default postgres postgres
'' + (lib.strings.concatStringsSep "\n"
(
map
(user: "default root ${user.username}")
cfg.users
)
)
);
archiveCommand = "${pgbackrest}/bin/pgbackrest archive-push %p"; archiveCommand = "${pgbackrest}/bin/pgbackrest archive-push %p";
settings = { settings = {
bgwriter_flush_after = "512kB"; bgwriter_flush_after = "512kB";