MyNixOS website logo
option

services.postgresql.dataDir

The data directory for PostgreSQL. If left as the default value this directory will automatically be created before the PostgreSQL server starts, otherwise the sysadmin is responsible for ensuring the directory exists with appropriate ownership and permissions.

Declarations
    Type
    path
    Default
    "/var/lib/postgresql/${config.services.postgresql.package.psqlSchema}"
    Example
    "/var/lib/postgresql/11"