services.postgresql.ensureUsers.*.ensureClauses.login
Grants the user, created by the ensureUser attr, login permissions. From the postgres docs:
Only roles that have the LOGIN attribute can be used as the initial role name for a database connection. A role with the LOGIN attribute can be considered the same as a “database user”. To create a role with login privilege, use either:
CREATE ROLE name LOGIN; CREATE USER name;
(CREATE USER is equivalent to CREATE ROLE except that CREATE USER includes LOGIN by default, while CREATE ROLE does not.)
More information on postgres roles can be found here
- Type
null or boolean- Default
null: do not set. For newly created roles, use PostgreSQL's default. For existing roles, do not touch this clause.- Declared
- <nixpkgs/nixos/modules/services/databases/postgresql.nix>