services.postgresql.identMap

NixOS option

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 in: nixos/modules/services/databases/postgresql.nixView source on NixOS/nixpkgs →