allow root to log in as any user locally
This commit is contained in:
parent
7c6222cbc9
commit
8e09451dee
1 changed files with 12 additions and 4 deletions
12
flake.nix
12
flake.nix
|
@ -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 root postgres
|
||||||
default postgres 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";
|
||||||
|
|
Loading…
Reference in a new issue