set default database backend in nixos module to rocksdb

The media backend already has a default value.
This commit is contained in:
Olivia Lee 2025-04-06 20:03:09 -07:00
parent 1cd12460d7
commit 1529d60a6a
No known key found for this signature in database
GPG key ID: 54D568A15B9CD1F9

View file

@ -40,18 +40,27 @@ in
''; '';
default = false; default = false;
}; };
database.path = lib.mkOption { database = {
type = types.nonEmptyStr; backend = lib.mkOption {
readOnly = true; type = types.nonEmptyStr;
description = '' description = ''
The path to store database files in. 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 Note that this is read-only because this module makes use of
systemd's `StateDirectory` option. systemd's `StateDirectory` option.
''; '';
default = if cfg.settings.conduit_compat default = if cfg.settings.conduit_compat
then "/var/lib/matrix-conduit/database" then "/var/lib/matrix-conduit/database"
else "/var/lib/grapevine/database"; else "/var/lib/grapevine/database";
};
}; };
media.backend = { media.backend = {
type = lib.mkOption { type = lib.mkOption {