mirror of
https://github.com/RGBCube/ncc
synced 2025-07-30 11:37:44 +00:00
Fix pg conf for real
This commit is contained in:
parent
e8088b507c
commit
ccf0c5fee5
1 changed files with 8 additions and 9 deletions
|
@ -23,18 +23,17 @@ in systemConfiguration {
|
|||
services.postgresql = enabled {
|
||||
package = pkgs.postgresql_14;
|
||||
|
||||
initdbArgs = [ "--locale=C" "--encoding=UTF8" ];
|
||||
enableJIT = true;
|
||||
|
||||
authentication = mkOverride 10 ''
|
||||
# Type Database DBUser Authentication IdentMap
|
||||
local all all peer map=superuser_map
|
||||
initdbArgs = [ "--locale=C" "--encoding=UTF8" ];
|
||||
initialScript = pkgs.writeText "grant-root-perms" ''
|
||||
GRANT pg_read_all_data TO root;
|
||||
GRANT pg_write_all_data TO root;
|
||||
'';
|
||||
|
||||
identMap = ''
|
||||
# Map System DBUser
|
||||
superuser_map root ^(.*)$
|
||||
superuser_map postgres ^(.*)$
|
||||
superuser_map /^(.*)$ \1
|
||||
authentication = mkOverride 10 ''
|
||||
# Type Database DBUser Authentication
|
||||
local all all peer
|
||||
'';
|
||||
|
||||
ensureUsers = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue