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
|
||||
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
|
||||
'';
|
||||
'' + (lib.strings.concatStringsSep "\n"
|
||||
(
|
||||
map
|
||||
(user: "default root ${user.username}")
|
||||
cfg.users
|
||||
)
|
||||
)
|
||||
);
|
||||
archiveCommand = "${pgbackrest}/bin/pgbackrest archive-push %p";
|
||||
settings = {
|
||||
bgwriter_flush_after = "512kB";
|
||||
|
|
Loading…
Reference in a new issue