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 {
|
services.postgresql = enabled {
|
||||||
package = pkgs.postgresql_14;
|
package = pkgs.postgresql_14;
|
||||||
|
|
||||||
initdbArgs = [ "--locale=C" "--encoding=UTF8" ];
|
enableJIT = true;
|
||||||
|
|
||||||
authentication = mkOverride 10 ''
|
initdbArgs = [ "--locale=C" "--encoding=UTF8" ];
|
||||||
# Type Database DBUser Authentication IdentMap
|
initialScript = pkgs.writeText "grant-root-perms" ''
|
||||||
local all all peer map=superuser_map
|
GRANT pg_read_all_data TO root;
|
||||||
|
GRANT pg_write_all_data TO root;
|
||||||
'';
|
'';
|
||||||
|
|
||||||
identMap = ''
|
authentication = mkOverride 10 ''
|
||||||
# Map System DBUser
|
# Type Database DBUser Authentication
|
||||||
superuser_map root ^(.*)$
|
local all all peer
|
||||||
superuser_map postgres ^(.*)$
|
|
||||||
superuser_map /^(.*)$ \1
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
ensureUsers = [
|
ensureUsers = [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue