services.postgresql.identMap
Defines the mapping from system users to database users.
See the auth doc.
There is a default map "postgres" which is used for local peer authentication as the postgres superuser role. For example, to allow the root user to login as the postgres superuser, add:
postgres root postgres
- Type
strings concatenated with "\n"- Default
""- Example
'' map-name-0 system-username-0 database-username-0 map-name-1 system-username-1 database-username-1 ''- Declared
- <nixpkgs/nixos/modules/services/databases/postgresql.nix>