mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 07:41:23 +01:00
update nixos module
Can't believe I forgot to do this...
This commit is contained in:
parent
a04951541a
commit
218d75d573
1 changed files with 29 additions and 3 deletions
|
|
@ -44,14 +44,40 @@ in
|
||||||
type = types.nonEmptyStr;
|
type = types.nonEmptyStr;
|
||||||
readOnly = true;
|
readOnly = true;
|
||||||
description = ''
|
description = ''
|
||||||
The path to store persistent data in.
|
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"
|
then "/var/lib/matrix-conduit/database"
|
||||||
else "/var/lib/grapevine";
|
else "/var/lib/grapevine/database";
|
||||||
|
};
|
||||||
|
media.backend = {
|
||||||
|
type = lib.mkOption {
|
||||||
|
type = types.nonEmptyStr;
|
||||||
|
readOnly = true;
|
||||||
|
description = ''
|
||||||
|
The media backend to use.
|
||||||
|
|
||||||
|
Note that this is read-only because `filesystem` is currently
|
||||||
|
the only valid option.
|
||||||
|
'';
|
||||||
|
default = "filesystem";
|
||||||
|
};
|
||||||
|
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/media"
|
||||||
|
else "/var/lib/grapevine/media";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
listen = lib.mkOption {
|
listen = lib.mkOption {
|
||||||
type = types.listOf format.type;
|
type = types.listOf format.type;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue