Skip to content

postgresql

Attribute: clan.core.postgresql

databases

Attribute: clan.core.postgresql.databases

Databases to create

Type: attribute set of (submodule)

Default:

{ }

Declared in: nixosModules/clanCore/postgresql

create

Attribute: clan.core.postgresql.databases.<name>.create

enable

Attribute: clan.core.postgresql.databases.<name>.create.enable

Create the database if it does not exist.

Type: boolean

Default:

true

Declared in: nixosModules/clanCore/postgresql

options

Attribute: clan.core.postgresql.databases.<name>.create.options

Options to pass to the CREATE DATABASE command.

Type: lazy attribute set of string

Default:

{ }
Example
{
  ENCODING = "UTF8";
  LC_COLLATE = "C";
  LC_CTYPE = "C";
  OWNER = "foo";
  TEMPLATE = "template0";
}

Declared in: nixosModules/clanCore/postgresql

name

Attribute: clan.core.postgresql.databases.<name>.name

Database name.

Type: string

Default:

"‹name›"

Declared in: nixosModules/clanCore/postgresql

restore

Attribute: clan.core.postgresql.databases.<name>.restore

stopOnRestore

Attribute: clan.core.postgresql.databases.<name>.restore.stopOnRestore

List of systemd services to stop before restoring the database.

Type: list of string

Default:

[ ]

Declared in: nixosModules/clanCore/postgresql

service

Attribute: clan.core.postgresql.databases.<name>.service

Service name that we associate with the database.

Type: string

Default:

"‹name›"

Declared in: nixosModules/clanCore/postgresql

enable

Attribute: clan.core.postgresql.enable

Whether to enable Whether to enable PostgreSQL Server.

Type: boolean

Default:

false
Example
true

Declared in: nixosModules/clanCore/postgresql

users

Attribute: clan.core.postgresql.users

Users to create

Type: attribute set of (submodule)

Default:

{ }

Declared in: nixosModules/clanCore/postgresql

name

Attribute: clan.core.postgresql.users.<name>.name

User name

Type: string

Default:

"‹name›"

Declared in: nixosModules/clanCore/postgresql