mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-16 15:21:24 +01:00
set default database backend in nixos module to rocksdb
The media backend already has a default value.
This commit is contained in:
parent
1cd12460d7
commit
1529d60a6a
1 changed files with 20 additions and 11 deletions
|
|
@ -40,18 +40,27 @@ in
|
|||
'';
|
||||
default = false;
|
||||
};
|
||||
database.path = lib.mkOption {
|
||||
type = types.nonEmptyStr;
|
||||
readOnly = true;
|
||||
description = ''
|
||||
The path to store database files in.
|
||||
database = {
|
||||
backend = lib.mkOption {
|
||||
type = types.nonEmptyStr;
|
||||
description = ''
|
||||
The database backend to use.
|
||||
'';
|
||||
default = "rocksdb";
|
||||
};
|
||||
path = lib.mkOption {
|
||||
type = types.nonEmptyStr;
|
||||
readOnly = true;
|
||||
description = ''
|
||||
The path to store database files in.
|
||||
|
||||
Note that this is read-only because this module makes use of
|
||||
systemd's `StateDirectory` option.
|
||||
'';
|
||||
default = if cfg.settings.conduit_compat
|
||||
then "/var/lib/matrix-conduit/database"
|
||||
else "/var/lib/grapevine/database";
|
||||
Note that this is read-only because this module makes use of
|
||||
systemd's `StateDirectory` option.
|
||||
'';
|
||||
default = if cfg.settings.conduit_compat
|
||||
then "/var/lib/matrix-conduit/database"
|
||||
else "/var/lib/grapevine/database";
|
||||
};
|
||||
};
|
||||
media.backend = {
|
||||
type = lib.mkOption {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue