services.hedgedoc.settings.db
NixOS option
Specify the configuration for sequelize. HedgeDoc supports mysql, postgres, sqlite and mssql. See https://sequelize.readthedocs.io/en/v3/ for more information. The relevant parts will be overriden if you set dbURL.
type: attribute setDefault
{
dialect = "sqlite";
storage = "/var/lib/hedgedoc/db.sqlite";
}
Example
declared in: nixos/modules/services/web-apps/hedgedoc.nixView source on NixOS/nixpkgs →db = {
username = "hedgedoc";
database = "hedgedoc";
host = "localhost:5432";
# or via socket
# host = "/run/postgresql";
dialect = "postgresql";
};