Skip to content

postgresql

A free and open-source relational database management system (RDBMS) emphasizing extensibility and SQL compliance.

Usage

To use this module, import it like this:

{config, lib, inputs, ...}: {
    imports = [ inputs.clan-core.clanModules.postgresql ];
    # ...
}

Module Options

clan.postgresql.databases

This option has no description.

Type: attribute set of (submodule)

Default:

{ }

postgresql

clan.postgresql.databases.<name>.create.enable

Create the database if it does not exist.

Type: boolean

Default:

true

postgresql

clan.postgresql.databases.<name>.create.options

This option has no description.

Type: lazy attribute set of string

Default:

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

postgresql

clan.postgresql.databases.<name>.name

Database name.

Type: string

Default:

"‹name›"

postgresql

clan.postgresql.databases.<name>.restore.stopOnRestore

List of systemd services to stop before restoring the database.

Type: list of string

Default:

[ ]

postgresql

clan.postgresql.databases.<name>.service

Service name that we associate with the database.

Type: string

Default:

"‹name›"

postgresql

clan.postgresql.users

This option has no description.

Type: attribute set of (submodule)

Default:

{ }

postgresql

clan.postgresql.users.<name>.name

This option has no description.

Type: string

Default:

"‹name›"

postgresql