MyNixOS website logo
option

services.postgresql.ensureUsers.*.ensureClauses

An attrset of clauses to grant to the user. Under the hood this uses the ALTER USER syntax for each attrName where the attrValue is true in the attrSet: ALTER USER user.name WITH attrName.

Declarations
Type
submodule
Default
{
  _type = "literalMD";
  text = "The default, `null`, means that the user created will have the default permissions assigned by PostgreSQL. Subsequent server starts will not set or unset the clause, so imperative changes are preserved.\n";
}
Example
{
  superuser = true;
  createrole = true;
  createdb = true;
}